Ubidots also supports to retrieve the actual UTC timestamp from our servers.

Structure

Ubidots TCP/UDP supports the payload request structure below for retrieving dots values:

{USER_AGENT}|UTCNOW|||end

where:

  • {USER_AGENT}: Mandatory. Contains a characteristic string that allows to identify 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 actual UTC timestamp in milliseconds.

  • Invalid message: Ubidots will answer ERROR|400 if the message is not valid.

Examples

Get the actual UTC timestamp

ESP8266/1.0|UTCNOW|||end