Having written an "Edit" in http://forum.espruino.com/comments/13472214/ I found it necessary to make a post as I think there is an issue in the bundled node-bluetooth-hci-socket
Take ones time and read thru my edited comment.
I will try for a compile of a native Web IDE and compare to the one downloaded from Espruino.
Note:
Close but no cigar ... yet.
clone EspruinoWebIDE node-bluetooth-hci-socket noble
npm install node-bluetooth-hci-socket noble from _the_cloneddirs
Altered console message
We have chrome.serial - not using 'serialport' module
'noble' module couldn't be loaded, no node.js Bluetooth Low Energy Error: A dynamic link library (DLL) initialization routine failed. \\?
Edit:
Noble ok in node_modules ie my windows 10 is A-OK ...?
C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\noble>node examples\advertisement-discovery.js
peripheral discovered (dff5a5ec431b with address <df:f5:a5:ec:43:1b, random>, connectable true, RSSI -53:
hello my local name is:
Puck.js 431b
can I interest you in any of the following advertised services:
["6e400001b5a3f393e0a9e50e24dcca9e"]
peripheral discovered (bc1485e88e81 with address <bc:14:85:e8:8e:81, public>, connectable true, RSSI -60:
hello my local name is:
[TV] UE48J5515
can I interest you in any of the following advertised services:
[]
here is my manufacturer data:
"7500420401018fbc1485e88e81be148564cf4024000000000000"
Confirmed? upstream issues with nobel npm modules from npm
C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\noble>node examples\advertisement-discovery.js
C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\bluetooth-hci-socket\lib\usb.js:70
throw new Error('No compatible USB Bluetooth 4.0 device found!');
^
Error: No compatible USB Bluetooth 4.0 device found!
at BluetoothHciSocket.bindUser (C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\bluetooth-hci-socket\lib\usb.js:70:11)
at BluetoothHciSocket.bindRaw (C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\bluetooth-hci-socket\lib\usb.js:28:8)
at Hci.init (C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\noble\lib\hci-socket\hci.js:101:35)
at NobleBindings.init (C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\noble\lib\hci-socket\bindings.js:82:13)
at new Noble (C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\noble\lib\noble.js:50:18)
at Object.<anonymous> (C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\noble\index.js:4:18)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
C:\source\repos\github\espruino\EspruinoWebIDE\node_modules\noble>
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.
Having written an "Edit" in http://forum.espruino.com/comments/13472214/ I found it necessary to make a post as I think there is an issue in the bundled node-bluetooth-hci-socket
Take ones time and read thru my edited comment.
I will try for a compile of a native Web IDE and compare to the one downloaded from Espruino.
Note:
Close but no cigar ... yet.
clone EspruinoWebIDE node-bluetooth-hci-socket noble
npm install node-bluetooth-hci-socket noble from _the_cloneddirs
Altered console message
Edit:
Noble ok in node_modules ie my windows 10 is A-OK ...?
Edit:
WIP reclone from github and repeat tests
NOTE: using C:\nwjs\nwjs-sdk-v0.20.1-win-x64
Confirmed? upstream issues with nobel npm modules from npm
Edit
https://github.com/espruino/EspruinoWebIDE/issues/168