Hello,
attached to the panstamp is a HTU21 and an AS3935 lightning senor. Based on the htusensor script I extended for the AS3935. Readings work nicely, even in combination with hardware pin interrupt wake up.
But how to set the as3935 registers? In earlier projects without battery I simply commented out swap.enterSystemState(SYSTATE_RXOFF) and swap.goToSleep(). Of course that is not possible here. I used only to verify the setter functions working.
What I tried in loop() was SYSTATE_SYNC, delay(1000) and SYSTATE_RXOFF, a few times this worked but not reliable.
Is there any example project or please can someone give a short description how to do that correctly.
Btw, the definition xml in the wiki:
<endpoint name="PWM output 0" type="num" dir="inp">
Is "inp" correct? Always used "out" for setters, never tried if inp works as well.
Thanks
Michael
attached to the panstamp is a HTU21 and an AS3935 lightning senor. Based on the htusensor script I extended for the AS3935. Readings work nicely, even in combination with hardware pin interrupt wake up.
But how to set the as3935 registers? In earlier projects without battery I simply commented out swap.enterSystemState(SYSTATE_RXOFF) and swap.goToSleep(). Of course that is not possible here. I used only to verify the setter functions working.
What I tried in loop() was SYSTATE_SYNC, delay(1000) and SYSTATE_RXOFF, a few times this worked but not reliable.
Is there any example project or please can someone give a short description how to do that correctly.
Btw, the definition xml in the wiki:
<endpoint name="PWM output 0" type="num" dir="inp">
Is "inp" correct? Always used "out" for setters, never tried if inp works as well.
Thanks
Michael