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

Method getValue

libraries/BLE/src/BLEClient.cpp:332–337  ·  view source on GitHub ↗

* @brief Get the value of a specific characteristic associated with a specific service. * @param [in] serviceUUID The service that owns the characteristic. * @param [in] characteristicUUID The characteristic whose value we wish to read. * @throws BLEUuidNotFound */

Source from the content-addressed store, hash-verified

330 * @throws BLEUuidNotFound
331 */
332String BLEClient::getValue(BLEUUID serviceUUID, BLEUUID characteristicUUID) {
333 log_v(">> getValue: serviceUUID: %s, characteristicUUID: %s", serviceUUID.toString().c_str(), characteristicUUID.toString().c_str());
334 String ret = getService(serviceUUID)->getCharacteristic(characteristicUUID)->readValue();
335 log_v("<<getValue");
336 return ret;
337} // getValue
338
339/**
340 * @brief Are we connected to a partner?

Callers

nothing calls this directly

Calls 4

c_strMethod · 0.80
toStringMethod · 0.45
readValueMethod · 0.45
getCharacteristicMethod · 0.45

Tested by

no test coverage detected