Ubidots also supports retrieving the current UTC timestamp from our servers.
Structure
Ubidots TCP/UDP supports the payload request structure below for retrieving the UTC timestamp:
USER_AGENT|UTCNOW|||end
Where:
USER_AGENT: Mandatory. Contains a characteristic string that identifies the application type, operating system, software vendor, or software version of the requesting software user agent. Examples: ESP8266/1.0, Particle/1.2
Server Response
OK|TIMESTAMP
ERROR|400-
Valid message: Ubidots will answer
OK|followed by the current UTC timestamp in milliseconds. -
Invalid message: Ubidots will answer
ERROR|400if the message is not valid.
Examples
Get the current UTC timestamp.
ESP8266/1.0|UTCNOW|||end

