ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Telemetry functions
  • Overview
  • Configuring the method used to send data
  • Offline mode by default
  • Configuring online mode
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
Telemetry data is sent to the server regularly and is processed by the server every 2 hours.
Configuring the method used to send data

Offline mode by default

By default, telemetry works in "offline" mode:
  • If the information cannot be sent, it is kept until the next day at 11:59 PM.
  • The information is kept on the disk and is therefore persistent if the application stops and restarts.
  • If one set of data is sent successfully, all pending data from the day and the day before is sent.
  • Pending data from two days before or older are progressively deleted.
If offline mode is disabled, data is sent as follows:
  • If one attempt fails, attempt 3 more times.
  • If 3 consecutive attempts fail, telemetry is automatically disabled until the application is closed.
  • The next time the application is started, the number of attempts starts again at 3 .

Configuring online mode

Use TelemetryConfigure to disable offline mode:
TelemetryConfigure(tcOfflineMode, False)
In this case, if 3 consecutive attempts fail, telemetry is automatically disabled until the application is closed.
The number of attempts can be configured using TelemetryConfigure:
TelemetryConfigure(tcNumberSendAttempts, 1)

The following values can be used:
  • 0: In this case, attempts are not counted. Data is sent every time even if the server does not respond.
  • 1: In this case, data is sent only once when the application is started. If this attempt fails, there will be no more attempts.
You can also use other values (see details of TelemetryConfigure).
By default, there are 3 attempts, and the attempt period is 1 hour. So, there are 3 hours.
Remark: If the server does not respond within 3 hours, the action is stopped (it is considered that the server does not exist any more, or that nobody checks its status, no point in insisting).
To send data every half hour and stop if the server has not responded within 2 hours, the corresponding code is:
TelemetryConfigure(tcOfflineMode, False)
TelemetryConfigure(tcMaximumPeriodCollection, 30 min)
TelemetryConfigure(tcNumberSendAttempts, 4)
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help