Timezone/Location
Usually, you'll want to subscribe to a widcard topic like downlink/#.
Request the Device Time and Timezone from Blynk
Publish topic get/utc/all/json, payload: empty
You will get a message on downlink/utc/all/json topic, with JSON-encoded payload:
tz_name
: The time zone name. It typically follows the "Area/Location" format used by the IANA Time Zone Database.tz_rule
: Rules for Daylight Saving Time (DST) changes, following the POSIX TZ format.tz_offset
: The time offset from UTC in minutes for the standard time (not accounting for daylight saving time).dst_offset
: An additional offset in minutes applied during Daylight Saving Time. If DST is not in effect, this would be 0.time
: The current time as a UNIX timestamp in milliseconds.iso8601
: The current time formatted according to the ISO 8601 standard, which combines date and time into a single string, appended with the time zone offset from UTC.
Request an approximate device location
Publish topic get/loc/all, payload: empty
You will get a message on downlink/loc/all topic, with Lat Lon GPS coordinates separaed by comma.
Last updated
Was this helpful?