Read Incoming Serial Data
Command : serialRead
Parameters
- data: 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/serialRead?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"}
Updated over 6 years ago