Here is my proposed code, do you have any suggestions?
So in this code, LED1 is not an output, so I shouldn't have to do a read correct?
The only reason you suggested bumping power with setTxPower(4) is just to give me some more distance correct?
Thank you.
function sendAdvert() { if(Puck.light() > 0.50){ NRF.setAdvertising({0x180F : Puck.getBatteryPercentage()}); } else{ NRF.setAdvertising({0xFFFF:"0"}); } } NRF.setTxPower(4); setInterval(sendAdvert, 1500);
@Terrence7 started
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.
Here is my proposed code, do you have any suggestions?
So in this code, LED1 is not an output, so I shouldn't have to do a read correct?
The only reason you suggested bumping power with setTxPower(4) is just to give me some more distance correct?
Thank you.