To push data to Bytebeam you need to first create a stream. You can do this by following the Creating a Stream guide. Once you have created a stream you can use the publishToStream method to publish data to the stream.


// Publish data to the bytebeam stream

//
// streamName: Name of the stream to publish the payload
// payload: Data to be published
//

bool Bytebeam.publishToStream(char* streamName, const char* payload);

Bytebeam expects the payload to be in the JSON format. Have a look at the PushData example sketch for a full fledged example showing how to use this function.