Thanks to Gordon, I now have a puck for testing.
It took some time to figure out, how to connect WebIDE from windows 10 puck.
Chrome or webpage did not work, but installation of local WebIDE application made it
At the end this is my way today:
open settings for Bluetooth
click add bluetooth device
wait for my puck to appear and the click
wait for ready, and close window
puck should now appear in bluetooth devices
now start local WebIDE (nw.exe)
click connect
select puck in list and it should work now.
After switching off power from puck, all steps need to be done again.
Next step was to setup puck as server
function set(nr){
var ble;
switch(nr){
case 1:
ble = {0xBCDE : { 0xABCD : { value : "Hello", readable : true } },
0xCDEF : { 0xBCDE : { value : "Hallo", readable : true },
0x1234 : { value : "Egon", readable : true } } }; break;
case 2:
ble = {0xBCDE : { 0xABCD :{ value : "hello", readable : true } } }; break;
}
NRF.setServices(ble,{});
NRF.setAdvertising({}, {name: "MyPuck",showName: true,discoverable: true});
}
After starting this, I switched to my mobile phone and started nRF connect, but puck was not found.
Puck appeared on my mobile only after disconnecting puck from WebIDE.
Is there a way to have puck connected to WebIDE and see it in my mobile ?
Otherwise testing would be difficult.
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.
Thanks to Gordon, I now have a puck for testing.
It took some time to figure out, how to connect WebIDE from windows 10 puck.
Chrome or webpage did not work, but installation of local WebIDE application made it
At the end this is my way today:
After switching off power from puck, all steps need to be done again.
Next step was to setup puck as server
After starting this, I switched to my mobile phone and started nRF connect, but puck was not found.
Puck appeared on my mobile only after disconnecting puck from WebIDE.
Is there a way to have puck connected to WebIDE and see it in my mobile ?
Otherwise testing would be difficult.