Hi All,
Trying to do something like this:
{
"feeds": { "temperature": 1.23, "pressure": 4.56, "voltage": 9.54, "card": 7.89 },
"location": { "lat": 53.0, "lon": 54, "ele": 3.0 },
"created_at": "2022-03-21T16:10:00Z" <----- PROBLEMATIC
}
Not quite right. Not sure how to format it where the "created_at" tag gets respected. The rest of it works. I'm sending data that is queued up and then bulk transferred, so I need separate time stamps for each quantum of data when that occurred and not just when that data is uploaded to the server.
Thanks!
Brecky
mqtt "created_at" tag
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: 1004
- Joined: Tue May 01, 2012 9:08 pm
Re: mqtt "created_at" tag
MQTT doesn't support the created_at field (supports value, latitude, longitued, elevation).
You'll need to use the HTTP API in order to support sending custom created_at values in the iso8601 format.
Also, you can look into batch uploading for the API, and it will save bandwidth as well as setup/teardown time.
Docs here:
https://io.adafruit.com/api/docs/#creat ... ta-records
You'll need to use the HTTP API in order to support sending custom created_at values in the iso8601 format.
Also, you can look into batch uploading for the API, and it will save bandwidth as well as setup/teardown time.
Docs here:
https://io.adafruit.com/api/docs/#creat ... ta-records
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.