The adafruit Bluefruit has a control pad the sends strings such as: !B41CRC
I want to parse this into its component parts such as: [‘!’] [‘B’] [‘4’] [‘1’] [CRC]
I think I can do this, but I don't know how to set a watch event that actually parses the string once it's received.
It is not like the bluefruit app calls a function parse(!B41CRC). How do I watch for incoming data then do something with it?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The adafruit Bluefruit has a control pad the sends strings such as:
!B41CRC
I want to parse this into its component parts such as:
[‘!’] [‘B’] [‘4’] [‘1’] [CRC]
I think I can do this, but I don't know how to set a watch event that actually parses the string once it's received.
It is not like the bluefruit app calls a function
parse(!B41CRC)
. How do I watch for incoming data then do something with it?