Would react native have access to Web Bluetooth? If so you could just include the puck.js library from http://www.espruino.com/Web+Bluetooth and do pretty much as above. There's an example in the Bangle.js app loader doing exactly that: https://github.com/espruino/BangleApps/blob/master/js/comms.js#L247
Otherwise you'd have to use whatever Bluetooth LE library React Native gives you I guess, and then implement what the puck.js library does (Connect to Nordic UART via bluetooth LE, and split any writes into 20 byte chunks) - but that's not too difficult really
© Espruino, powered by microcosm.
Report a problem