Sending a Test JSON Message
The transmit JSON API provides a flexible interface for transmitting an arbitrary message from pshell.
Here you will send a JSON message to demonstrate how messages are sent and confirm that your sensor data can be formatted correctly.
For a deeper explanation of JSON messages, sockets, and host APIs, see Communicating with a Popoto System.
Send the following command:
transmitJSON {"Payload":{"Data":[49,50,51,52,53,54,55,56,57,48,49,50,51,52,53,54]}}
This example sends the following byte stream to the remote modem:
49, 50, 51, 52, 53, 54, 55, 56, 57, 48, 49, 50, 51, 52, 53, 54