OK.
Some more tests show that it may have been a memory issue.
Limiting the stored lap data to 250 records resulted in the test running for about two hours now.
However, somehow the Transponders stop advertising now somehow after a few hundered iterations being toggled on and off.
This is the modified code:
The effect is this:
The blue flashing still occurs, but the change to advertise the manufacturer id doesn't seem to happen, because the Puck is not recognized by the tracker anymore.
Toggling on/off via button (resutls in NRF.sleep() / NRF.wake()does not help.
Doing a reboot (power cycle) makes it work again.
It seems the repeatedly change via NRF.setAdvertising() breaks something over time.
Very strange, but no issue for the later use case.
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.
OK.
Some more tests show that it may have been a memory issue.
Limiting the stored lap data to 250 records resulted in the test running for about two hours now.
However, somehow the Transponders stop advertising now somehow after a few hundered iterations being toggled on and off.
This is the modified code:
The effect is this:
The blue flashing still occurs, but the change to advertise the manufacturer id doesn't seem to happen, because the Puck is not recognized by the tracker anymore.
Toggling on/off via button (resutls in
NRF.sleep()
/NRF.wake()
does not help.Doing a reboot (power cycle) makes it work again.
It seems the repeatedly change via
NRF.setAdvertising()
breaks something over time.Very strange, but no issue for the later use case.