• You can use NRF.sleep() to stop advertising (and wake to wake it), but you're not going to be saving vast amounts of power. If you really want to do that I'd suggest just supplying an interval argument in the second parameter of setAdvertising and choosing a very low (~2 sec?) interval.

    It'll have basically the same effect but it's still connectable, and you'll actually get an update of the data to 0, rather than your last received advertising being the last nonzero value.

  • and choosing a very low (~2 sec?) interval.

    You mean in place of the usual 375/600 ms? I am just worried that ESP32 may not be able to pick it up if it advertises too slow.

About

Avatar for Gordon @Gordon started