My goal is to send Mqtt messages to my service robot,but since the bangje.js have no Wifi so tried to use the EspruinoHub .
I have setup a EspruinoHub and Node-red on my Raspberry Pi
In the first stage my setup failed because the tutorial on the internet use Node.js version 8.x.x but the setup installed 10.x.x
After find out how to change to version 8. everything seems fine, but it wasn't because Node-red is not working under node.js v 8.x.x and npm install does not work under version 10.x.x
So decide to use only version 8.x.x and no Node-Red
But so far I know the hub and BLE is working, but when I try to connect my watch it failed.
When i use hcitool lescan sometimes my watch is visible but most of the time it does not show up in the scan.
pi@raspberrypi:~ $ sudo hcitool lescan
LE Scan ...
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.
My goal is to send Mqtt messages to my service robot,but since the bangje.js have no Wifi so tried to use the EspruinoHub .
I have setup a EspruinoHub and Node-red on my Raspberry Pi
In the first stage my setup failed because the tutorial on the internet use Node.js version 8.x.x but the setup installed 10.x.x
After find out how to change to version 8. everything seems fine, but it wasn't because Node-red is not working under node.js v 8.x.x and npm install does not work under version 10.x.x
So decide to use only version 8.x.x and no Node-Red
But so far I know the hub and BLE is working, but when I try to connect my watch it failed.
When i use hcitool lescan sometimes my watch is visible but most of the time it does not show up in the scan.
pi@raspberrypi:~ $ sudo hcitool lescan
LE Scan ...
78:5C:09:70:14:91 (unknown)
C6:65:C2:3D:E6:A7 Bangle.js e6a7
C6:65:C2:3D:E6:A7 (unknown)
^Cpi@raspberrypi:~ $ sudo gatttool -b C6:65:C2:3D:E6:A7 -I
[C6:65:C2:3D:E6:A7][LE]> connect
Attempting to connect to C6:65:C2:3D:E6:A7
Error: connect error: Connection refused (111)
[C6:65:C2:3D:E6:A7][LE]>
Can someone help me to connect and send a Mqtt message.
I am new on javascript so my knowledge is not to much