MCPcopy Create free account
hub / github.com/Heltec-Aaron-Lee/WiFi_Kit_series / gattIdToString

Function gattIdToString

libraries/BLE/src/BLEUtils.cpp:824–830  ·  view source on GitHub ↗

* @brief Convert an esp_gatt_id_t to a string. */

Source from the content-addressed store, hash-verified

822 * @brief Convert an esp_gatt_id_t to a string.
823 */
824static String gattIdToString(esp_gatt_id_t gattId) {
825 String res = "uuid: " + BLEUUID(gattId.uuid).toString() + ", inst_id: ";
826 char val[8];
827 snprintf(val, sizeof(val), "%u", gattId.inst_id);
828 res += val;
829 return res;
830} // gattIdToString
831
832/**
833 * @brief Convert an esp_ble_addr_type_t to a string representation.

Callers 2

dumpGattClientEventMethod · 0.85
gattServiceIdToStringMethod · 0.85

Calls 2

BLEUUIDClass · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected