This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Android APP:How to update the services?

Hi,all!

I am programing an android ble app.And I have successfully connected to my device and get my own service(uuid:0x1600),and the characteristic in it(uuid:0x1601).

But the problem is, I modified my own service uuid from 0x1600 to 0x1500, but my APP still find the service's uuid is 0x1600.By the way,I am pretty sure the service's uuid has changed to 0x1500 because I tested it with Master Concrol Panel.

And my code is:

BluetoothGatt mBluetoothGatt;
List<BluetoothGattService> gattServices;
...
gattServices=mBluetoothGatt.getServices();
for (BluetoothGattService gattService : gattServices){
   service_uuid = gattService.getUuid().toString();
}

Can someone explain this for me,thank you very much!

Parents Reply Children
No Data
Related