Search found 3 matches

by lightingghost
Sun Aug 23, 2020 6:33 am
Forum: ESP32 Arduino
Topic: RemoteCharacteristic->writeValue stuck at Semaphore taking ...
Replies: 0
Views: 1970

RemoteCharacteristic->writeValue stuck at Semaphore taking ...

Source Code void notifyCallback( BLERemoteCharacteristic* pBLERemoteCharacteristic, uint8_t* pData, size_t length, bool isNotify) { log_d("Notify callback for characteristic %s", pBLERemoteCharacteristic->getUUID().toString().c_str()); if (pBLERemoteCharacteristic->getUUID().toString() != heightChar...
by lightingghost
Fri Aug 21, 2020 5:28 am
Forum: ESP32 Arduino
Topic: BLE characteristic readValue cannot reliably read data
Replies: 3
Views: 4780

Re: BLE characteristic readValue cannot reliably read data

Thank you for pointing it out.

It seems to me that this authentication process happens inside readValue(), is it possible for me to wait for authentication?

Sorry for the noob question, but I am following the examples provided and cannot find a place to control the authentication.
by lightingghost
Thu Aug 20, 2020 8:40 pm
Forum: ESP32 Arduino
Topic: BLE characteristic readValue cannot reliably read data
Replies: 3
Views: 4780

BLE characteristic readValue cannot reliably read data

I am trying to read the value from a characteristic of a BLE device. The code #include <Arduino.h> #include "BLEDevice.h" //#include "BLEScan.h" static const char* TAG = "CtrlMain"; static BLEUUID heightServiceUUID("99fa0020-338a-1024-8a49-009c0215f78a"); static BLEUUID heightCharUUID("99fa0021-338a...