Write and then read serial Data
Command : serialWR
Parameters
- data: The data that has to be written to the UART.
- till: Read the data upto the specified 'till' value from the incoming UART data to Bolt. It takes ASCII value of the character from 0-127.
-
- deviceName*: The name of the Bolt device you want to control.
Example:
- deviceName*: The name of the Bolt device you want to control.
- https://cloud.boltiot.com/remote/44b2de6b-7e68-40e7-a27f-814b58afe008/serialWR?data=company&till=10&deviceName=BOLT8795377
- If you want to read till a newline char '\n' the ASCII value corresponding to '\n' is 10, the above command is given. Note: till is an optional parameter.
- Browser output:
{"success": "1", "value": "inventrom"}
This API is best used with the BoltIoT-Arduino-Helper library, as it reduces the number of API calls that have to be made, when sending a command to the Arduino.
Updated over 5 years ago