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
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.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- jwcooper
- Posts: 1003
- Joined: Tue May 01, 2012 9:08 pm
Re: MQTT publish with Time stamp
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.
https://io.adafruit.com/api/docs/#creat ... ta-records
I don't believe you can send the timestamp with MQTT.
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.