Skip to content

Commit

Permalink
explain optional metadata arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jul 18, 2024
1 parent b85b8e2 commit a83c183
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/adafruit_io_http/adafruit_io_batch_cpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@
random_value, time_offset
)
)
data.append({"value": random_value, "created_at": created_at.isoformat()})
data.append(
{
"value": random_value,
"created_at": created_at.isoformat(), # optional metadata like lat, lon, ele, etc
}
)

# Send the data to the feed as a single batch
io.send_batch_data(temperature_feed["key"], data)
Expand Down

0 comments on commit a83c183

Please sign in to comment.