Chreece / BTHomeV2-ESP32-example

An BTHome v2 example with encryption for ESP32
MIT License
35 stars 7 forks source link

Add trigger based device support #22

Closed countrysideboy closed 1 year ago

countrysideboy commented 1 year ago

From bthome.io: The trigger based device flag is telling the receiver that it should expect that the device is sending BLE advertisements at a regular interval (bit 2 = 0) or at an irregular interval (bit 2 = 1), e.g. only when someone pushes a button. This can be usefull information for a receiver, e.g. to prevent the device from going to unavailable.

Make the device into a sleepy sensors and prevent it from going to unavailable, just call buildPaket(true).

Chreece commented 1 year ago

Very useful, thank you