Ble runtime error when looking for AdvertiserServiceUuids

Hi,
I need to know when one of my several BLE devices goes far from my phone. Instead of scanning, since I know the MAC of all devices, I’m trying to ask the devices for some properties to see if the are alive or not. I’m trying to get AdvertiserServiceUuids either with mac either after a scan result but I alway receive “Ble runtime error …getScanRecord() on a null object reference”.
Can you please tell me if I’m wrong or what?
Can I do a l2ping or ask for something different?
Thanks

In this discussion, the app sends a message and ESP32 returns a response.

Another idea would be for the BLE device to send its status from time to time through the RegistryForStrings procedure.

1 Like

Thank you, I will try this.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.