• Having written an "Edit" in http://forum.espruino.com/comments/13472­214/ 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\Espruino­WebIDE\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:
                    "7500420401018fbc1485e88e81be148564cf402­4000000000000"
    

    Edit:
    WIP reclone from github and repeat tests

    NOTE: using C:\nwjs\nwjs-sdk-v0.20.1-win-x64

    git clone --recursive https://github.com/espruino/EspruinoWebI­DE.git
    

    Confirmed? upstream issues with nobel npm modules from npm

    C:\source\repos\github\espruino\Espruino­WebIDE\node_modules\noble>node examples\advertisement-discovery.js
    C:\source\repos\github\espruino\Espruino­WebIDE\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\Espruin­oWebIDE\node_modules\bluetooth-hci-socke­t\lib\usb.js:70:11)
        at BluetoothHciSocket.bindRaw (C:\source\repos\github\espruino\Espruin­oWebIDE\node_modules\bluetooth-hci-socke­t\lib\usb.js:28:8)
        at Hci.init (C:\source\repos\github\espruino\Espruin­oWebIDE\node_modules\noble\lib\hci-socke­t\hci.js:101:35)
        at NobleBindings.init (C:\source\repos\github\espruino\Espruin­oWebIDE\node_modules\noble\lib\hci-socke­t\bindings.js:82:13)
        at new Noble (C:\source\repos\github\espruino\Espruin­oWebIDE\node_modules\noble\lib\noble.js:­50:18)
        at Object.<anonymous> (C:\source\repos\github\espruino\Espruin­oWebIDE\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\Espruino­WebIDE\node_modules\noble>
    

    Edit
    https://github.com/espruino/EspruinoWebI­DE/issues/168

About