paul_tanner
Member since Sep 2015 • Last active Feb 2018Most recent activity
-
[Related post](http://forum.espruino.com/conversations/306536/
In my case my Puck is notifying a .js app of a change of a float32 value.
I tried using print() but this converts a float32 into a ascii byte-string. This is sort of OK but rather messy for the app to have to convert back to a Float, not to mention potential loss of precision.Is there a way to send the float in its natural 4-byte form so that converting back to float32 can be easily done by the app?
Thx.
Paul -
- 10 comments
- 4,628 views
-
-
-
I think this is working OK. Is the advertising interval fixed at around 2 secs?
setWatch( function() { NRF.wake(); LED1.write(true); setTimeout(function() { LED1.write(false); setTimeout(function() { NRF.sleep(); },60*1000); // 1 minute },50); }, BTN, { edge:"rising", debounce: 50, repeat: true //?? } ); NRF.sleep();
The button seems super-sensitive. I checked that the device is reassembled correctly. Picking it up appears to activate it.
-
-
I want to make a beacon that uses as little power (last as long) as possible.
Since puck has a button I thought I might get it to wake up on that and go into lowest power mode after a set period of advertising.Looking at the links at the end of "Getting started". I was hoping to find some stuff about puck platform-specifics that would help me code up the above. As it is the links that looked useful are broken.
-
well done @lavamantis ;-) It would be extremely helpful if you could post a simple app sample to help people test the espruino when the HC-10 is attached. Thanks in advance.
(If you wondering what this could be, a beacon is one obvious simple app)
IoT consultant and integrator.