Time service is extremely important:
1. Some of the device's working mechanisms rely on standard time.
2. The message server needs to determine the timing of certain operations through the timestamps in the messages reported by the device.
On the device side, there are two time synchronization mechanisms:
1. After the device is powered on and successfully connects to the wireless network, it will request the time service immediately to obtain the time of the message server and synchronize with it.
When registering (adding) a message server, you will be required to fill in the URL of the NTP service.
The implementation of the NTP service is very simple: the device uses an HTTP request (HTTPS is not supported) to obtain the standard time.
Therefore, you only need to specify a path on the web service of the message server (or another server in the same network), and output a 10-digit (second-level) or 13-digit (millisecond-level) timestamp.
You can verify its availability by opening this link in a browser on any computer in the network segment of the message server and confirming that it returns the timestamp normally.
It should be noted that the NTP service used by the device is an HTTP request, not the system's NTP service. Do not fill in the domain name of the NTP server in the NTP address field.

2. Next, during the device's operation, it will send a time synchronization request to the NTP topic every 24 hours to ensure time accuracy.
At this point, you only need to return the standard time in the "data" field of the response message.