What is the function of BLE.poll()?

"Poll for BLE radio events for the specified BLE device and handle them."

In other words it does all the work of talking to the device and checking for stuff happening and calling any event handlers you've registered with the library. You just have to call it in loop() and not worry about it :slight_smile:

You can find the sourcecode for ArduinoBLE library on github if you want to know the full details - but be warned its complicated.

1 Like