- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, can someone help on below
I have three services created in Gatt server (e.g. service 1, service 2 and service 3 )
1) when i start the program all three services are visible on phone
2)when i write some info ( data) in service 2, i am storing it in emEEPROM and disabling that service by calling CyBle_GattsDisableAttribute(service 2);
after that i am doing CyBle_SoftReset();
3)once this is done i can see only two services in phone (service 1 & service 3) which is what i want
4)but the problem is when i do power off & power on again i can see all three services on phone,
what needs to be done so that even after power off on there should be only two services visible no all ( i want the selective services , and my service 2 is one time writable so after writing i do not what that to appear anymore)
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i got the solution
after gattsdbregister, we checked eeprom & disabled the service
#if(CYBLE_GATT_ROLE_SERVER)
apiResult = CyBle_GattsDbRegister(cyBle_gattDB, CYBLE_GATT_DB_INDEX_COUNT, CYBLE_GATT_DB_MAX_VALUE_LEN);
if(eepromarray
{
CyBle_GattsDisableAttribute(service 2);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i got the solution
after gattsdbregister, we checked eeprom & disabled the service
#if(CYBLE_GATT_ROLE_SERVER)
apiResult = CyBle_GattsDbRegister(cyBle_gattDB, CYBLE_GATT_DB_INDEX_COUNT, CYBLE_GATT_DB_MAX_VALUE_LEN);
if(eepromarray
{
CyBle_GattsDisableAttribute(service 2);
}