Dynamic GATT on newly advertised devices

LieBieS
Posts: 2
Joined: Fri Apr 03, 2020 6:39 pm

Dynamic GATT on newly advertised devices

Postby LieBieS » Fri Apr 03, 2020 7:35 pm

Hi All,

Please could you assist in trying to report out the battery level of my iBeacon.
I have the my program scanning for devices. It is able to detect if there is a UUID available, but don't know how to access the characteristic of the newly discovered device.
Please someone point me in the right direction. I have found an article on CircuitDigest that simulate the battery level. But they use a hard-coded UUID.
Any assistance will be greatly appreciated.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: Dynamic GATT on newly advertised devices

Postby chegewara » Sat Apr 04, 2020 9:31 pm

You have to connect to device, then search for services and characteristics before you can read characteristic.

LieBieS
Posts: 2
Joined: Fri Apr 03, 2020 6:39 pm

Re: Dynamic GATT on newly advertised devices

Postby LieBieS » Sun Apr 05, 2020 8:44 am

Thanks Chegewara. I will try the connection to the unit and attempt to read the characteristics and services. Will keep you posted.

Who is online

Users browsing this forum: MichaelS, ok-home and 102 guests