I looked at PR #49 but couldn't figure out if I can use method NimBLERemoteCharacteristic::getValue() in callbacks?
The PR says that we should pass a timestamp to prevent re-reading, but is this relevant now?
Or can we just use such an expression now?
pChar->subscribe(true, [](NimBLERemoteCharacteristic* pChar, uint8_t* pData, size_t length, bool isNotify) {
// ...
auto value = pChar->getValue<short>();
// ...
});
Hi,
I looked at PR #49 but couldn't figure out if I can use method
NimBLERemoteCharacteristic::getValue()
in callbacks? The PR says that we should pass atimestamp
to prevent re-reading, but is this relevant now?Or can we just use such an expression now?