Most recent activity
-
- 1 comment
- 0 views
-
Hello,
Did anyone managed to tweak the puck.js script https://www.puck-js.com/puck.js
with this : https://googlechrome.github.io/samples/web-bluetooth/automatic-reconnect.htmlto allow auto reconnection ?
-
- 1 comment
- 0 views
-
-
- 1 comment
- 0 views
-
Hi,
I started to have the open brackets / close brackets error on a script I have been using for a while and was compiling fine till today. No changes have been made to it . There is no error visible in the IDEI found out this function is where is the problem but I really don't see any brackets error on it ??? :
function rescaleToMidiCC (value, oldMin, oldMax){
newMin = 0;
newMax = 127;
rescaled = Math.round((value - oldMin) * (newMax - newMin) / (oldMax - oldMin) + newMin);
rescaled = Math.min(127, Math.max(0, rescaled));
return rescaled;
}deleting this part of the code and the script compiles
-
I tried all the above, it worked as advertised but didn't resolved or permit the auto-connection ( the device now show in the main bluetooth menu but still need to get connected every time in the bluetooth audio midi setup windows). I assume its coming from the OS side more than the espruino itself.
note: I had a weird behavior with NRF.setServices ( NRF.setSecurity({passkey:"123456", lesc:1, bond :1});)
Where It asked for the passkey only a few restart after and then the Espruino Web IDE will throw random errors when trying to upload new code . had to perform a reset(); save(); to go back to normal.
Hello,
using this code from https://www.espruino.com/BLE+Advertising
var presses = 0;
NRF.setAdvertising({},{manufacturer: 0x0590, manufacturerData:[presses]});
setWatch(function() {
presses++;
NRF.setAdvertising({},{manufacturer: 0x0590, manufacturerData:[presses]});
}, BTN, {edge:"rising", repeat:1, debounce:20})
I am trying to see the presses on https://googlechrome.github.io/samples/web-bluetooth/watch-advertisements.html
but I can't see the manufacturer data coming in ? Any idea what could be changed to make it work ?
thank you!