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?
[‘!’] [‘B’] [‘4’] [‘1’] [CRC]
© Espruino, powered by microcosm.
Report a problem