esp32-snippets: Problem using multiple characteristics
Hello
I’m trying to use multiple charactericts within one service. But when the Client retrieves the characteristics within BLERemoteService::retrieveCharacteristics, it fails while accessing the second characteristic:
if (status == ESP_GATT_INVALID_OFFSET) { // We have reached the end of the entries.
ESP_LOGE(LOG_TAG, "Invalid offset in status:< %s", BLEUtils::gattStatusToString(status).c_str());
break;
}
Output: D (3603) BLEClient: << getService: found the service with uuid: 0855d3e4-d847-4fc5-a06d-e3ec9629146f␛[0m D (3623) BLERemoteService: >> getCharacteristics() for service: 0855d3e4-d847-4fc5-a06d-e3ec9629146f␛[0m D (3633) BLERemoteService: Found a characteristic: Handle: 42, UUID: c076b13d-f8b9-46e0-975a-70080fb15b09␛[0m ␛[0;31mE (3643) BLERemoteService: Invalid offset in status: Unknown␛[0m D (3643) BLERemoteService: << getCharacteristics()␛[0m
All characteristics seemed to be added correcty at the serverside while Debugging
Thanks in advance
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (3 by maintainers)
PRed!