MQTT publish with Time stamp

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
dumindu123
 
Posts: 1
Joined: Tue Jan 01, 2019 2:35 am

MQTT publish with Time stamp

Post by dumindu123 »

Hi,

Is there a way that I can push the time stamp with MQTT data to io.adaafruit.com? I have connected sensors to ESP32 which will be in sleep mode but will collect data every 1 minute. I need to send the queued data points every 10 minutes with the correct time stamp that data has been acquired.

Thank You in Advance

User avatar
jwcooper
 
Posts: 1003
Joined: Tue May 01, 2012 9:08 pm

Re: MQTT publish with Time stamp

Post by jwcooper »

You can do this with the HTTP API, batch multiple records and include the timestamp:
https://io.adafruit.com/api/docs/#creat ... ta-records

I don't believe you can send the timestamp with MQTT.

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”