Most recent activity
-
-
- 12 comments
- 3,354 views
-
@Gordon yes it's the only new line \n
-
-
-
-
Hi,
My puck.js not advertising anymore, i have changed the battery then the green led flash 5 times sometimes when i click the button.
In a few weeks, The old battery has suddenly lost all its power from ~90% to ~20%.When the battery has died, i changed it with a the same new then impossible to scan it and these flashes started..
What's the meaning of green led flashing ?
Thanks!
here the script uploaded :
`reset(); echo(0); notify(0); clearInterval(); clearWatch(); var presses=0; var timeoutDoubleClick = null; var nbClick = 0; var activeDebug = ""; var releasedTime = 0; var timeoutReleased = null; var switchMode = null; var low = 0; var state = {press : false, release : false}; var batteryLevel = 0; setWatch(function() { state.release = true; state.press = false; if(releasedTime){ activeDebug = "d"; LED.set(); }else{ activeDebug = ""; } nbClick++; if (!timeoutDoubleClick) { timeoutDoubleClick = setTimeout(function(){ timeoutDoubleClick = null; NRF.setAdvertising({},{ interval:150, manufacturer:0x0590, manufacturerData:activeDebug+"clk-"+presses+"-"+nbClick+"-${scriptVersion}-"+batteryLevel }); nbClick = 0; }, 500); } if (nbClick > 1) { clearTimeout(timeoutDoubleClick); timeoutDoubleClick = null; NRF.setAdvertising({},{ interval:150, manufacturer:0x0590, manufacturerData:activeDebug+"clk-"+presses+"-"+nbClick+"-${scriptVersion}-"+batteryLevel }); nbClick = 0; } if(presses > 98){ presses=0; } presses++; }, BTN, {edge:"falling", debounce:20, repeat:1}); setWatch(function(){ state.release = false; state.press = true; if(timeoutReleased){clearTimeout(timeoutReleased);} timeoutReleased = setTimeout(function(){ timeoutReleased = null; if(!state.release){ releasedTime = !releasedTime; var flicker = 0; switchMode = setInterval(function(){ LED.set(); flicker++; setTimeout(function(){ LED.reset(); },150); if(flicker == 3){clearInterval(switchMode);} },300); } },10000) LED.set(); if(!activeDebug){ LED2.reset(); LED3.reset(); } LED.reset(); }, BTN, { edge:'rising', repeat:1, debounce:20 }); LED1.set(); function sendBatteryInfo(){ batteryLevel = Math.round(E.getBattery()); if(batteryLevel < 20){ low = 1;} } sendBatteryInfo(); setInterval(sendBatteryInfo,60 * 60 * 1000); save();\n`
Hi !
I have encountered on many puck.js buttons 2.0 only, a hardware problem.
The battery base was unsoldered on one side..
I had this issue on about ten buttons ..
It happen after the battery was inserted.
The battery base is more narrow than 1.0 and i feel that we have to force more to put the battery inside the base..
has other users encountered this issue ?
What can you do ? maybe this issue is corrected since ?
Thank you