Pushing data to Bytebeam
You can use ByteBeam Client to push data to Streams. Follow Creating a Stream guide to create streams.
Payload you want to publish must be something that can be Serialized to JSON.
Lets say you have "led_status" stream with field "status". You can create a struct and use serde::Serialize attribute.
NOTE: Every stream has id and timestamp fields as well, we add them internally, so it is recommended to not include them in your custom struct!
Updated 12 Mar 2023
Did this page help you?