Ok - so you call into the espruino CLI to send data to Espruino?
I imagine that would cause some problems as you have two separate processes trying to use the BLE device? Could you not use the same espruino package from Node.js itself? See https://github.com/espruino/EspruinoTools#npm-module
You may also have to explicitly call noble.startScanning() again after you complete the connection as well...
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.
Ok - so you call into the espruino CLI to send data to Espruino?
I imagine that would cause some problems as you have two separate processes trying to use the BLE device? Could you not use the same
espruino
package from Node.js itself? See https://github.com/espruino/EspruinoTools#npm-moduleYou may also have to explicitly call
noble.startScanning()
again after you complete the connection as well...