This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Ble connection only on certain events

I want to connect a central and peripheral and only have ble on when the peripheral senses a certain event that exceeds a threshold. Do the devices need to connect on startup to recognize eachother? How is the best way to turn the connection on/off? I am using the heart rate collector as a base.

Parents
  • I have a central board that is functioning similar to the heart rate collector and I want it to scan every 30 seconds to check for updates to the data on the peripheral device. The peripheral device only sends updates when it has data that passes a certain threshold. So when it senses that data it will turn BLE on and send the packet over. Do the two devices need to have ble on at the beginning to establish connection and enable notifications?

Reply
  • I have a central board that is functioning similar to the heart rate collector and I want it to scan every 30 seconds to check for updates to the data on the peripheral device. The peripheral device only sends updates when it has data that passes a certain threshold. So when it senses that data it will turn BLE on and send the packet over. Do the two devices need to have ble on at the beginning to establish connection and enable notifications?

Children
No Data
Related