if (read)
{
- g_gattReadCharPath = charPath;
- }
- else
- {
char desc_value[2] = {0, 0}; // Notification enabled.
bt_gatt_h descriptor = NULL;
permissions = BT_GATT_PERMISSION_READ | BT_GATT_PERMISSION_WRITE;
CALEGetErrorMsg(ret));
return CA_STATUS_FAILED;
}
+ g_gattReadCharPath = charPath;
+ }
+ else{
g_gattWriteCharPath = charPath;
}