WICED smart on BCM20737 : GATT service add problem

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Good morning

i'm trying to add a UUID128 service on top of the WICED SENSE application to transmit other datas.

I added the following code in the wiced_sense_gatt_database[]

PRIMARY_SERVICE_UUID128 (HANDLE_NEW_SERVICE, UUID_NEW_SERVICE),

CHARACTERISTIC_UUID128 (0x003B, HANDLE_NEW_O1_SERVICE  , UUID_NEW_O1_SERVICE,

                                     LEGATTDB_CHAR_PROP_READ | LEGATTDB_CHAR_PROP_NOTIFY,

                                     LEGATTDB_PERM_READABLE, 20),

                        0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

CHARACTERISTIC_UUID128 (0x003D, HANDLE_NEW_O2_SERVICE   , UUID_NEW_O2_SERVICE  ,

                                                LEGATTDB_CHAR_PROP_READ | LEGATTDB_CHAR_PROP_NOTIFY,

                                                LEGATTDB_PERM_READABLE, 16),

                                   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

i compiled & downloaded the code. When i list the services send by my application, i never see the UUID_NEW_SERVICE listed on my IPHONE (i'm using lightblue application to list all services & characteristics).

do you have any idea ? what do i missed ?

thanks a lot for your help.

best regards

Etienne

vik86

0 Likes
1 Solution
Anonymous
Not applicable

Handle value in GATT DB should be incremental order.

So when you use handle around 0x3X for your new service,

please check it's placed in just before "// Handle 0x4d: Device Info service".

Services may cached in your iOS by that thread.

Can't change services

View solution in original post

2 Replies
Anonymous
Not applicable

Handle value in GATT DB should be incremental order.

So when you use handle around 0x3X for your new service,

please check it's placed in just before "// Handle 0x4d: Device Info service".

Services may cached in your iOS by that thread.

Can't change services

Anonymous
Not applicable

thank you for the link Can't change services it works !

it seems that IOS + lightblue need to do a real new pairing to list new services (after changing the adress), IPHONE asked me to do a new pairing and sucessfully listed the new services.

thanks a lot for the hint