IoT consultant and integrator.
Most recent activity
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?
figure this out: putting the line in and then taking it out again cleared the problem. No rush to explain that as I am up and running.
Adding that pinMode line caused it to stop waking up altogether (ie ignoring the button).
My puck is on 1v88. I will look for how to upgrade it.
I think this is working OK. Is the advertising interval fixed at around 2 secs?
},60*1000); // 1 minute
repeat: true //??
The button seems super-sensitive. I checked that the device is reassembled correctly. Picking it up appears to activate it.
Those are the refs I needed. I'll post back here when I have tested code.
BTW. The broken links are in the version that's in github. The ones on the puck-js website are OK.
In terms of time for emails, I feel your pain :(
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)