Stop all BLE outbound traffic

Posted on
  • I am trying to stop all traffic out of the puck so that I can send 1 advertisement out when the button is clicked. One message a day will save my battery and not confuse my client(RPI).

    My RPI will be sitting around listening for a single message and when that binary message gets received it will send a message to Azure.

    What do you suggest on making this happen for a BLE rookie?

    Thank you for creating this great device.

    Terrence

  • Hi, Thanks!

    I reckon you can use NRF.sleep() and NRF.wake() to stop advertisements. However that will make the device unconnectable when it's not advertising.

    Also you really want to let it send quite a few advertisements (so leave make 2 seconds between wake and sleep). It's radio so there's absolutely no guarantee that a single message will get through to the Pi.

    I wouldn't be too worried about the battery usage of advertising though - it's not that huge. You can always reduce the advertising interval to once a second or so, which will really reduce the battery usage without you having to do anything painful with wake and sleep.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Stop all BLE outbound traffic

Posted by Avatar for Terrence @Terrence

Actions