SI_Cheng-Yun
Member since Apr 2024 • Last active May 2024Most recent activity
-
-
- 39 comments
- 1,836 views
-
-
-
no no no no no... writing does work!
just the callback functiononWrite()
is not implemented
I can both read and write / edit the value of certain characteristic, but could not call theonWrite()
callback function
In my conception, I should write / edit the value of characteristic A, and then my ESP32 call theonWrite()
callback function to verify this value. If the value is valid, ESP32 will change characteristic B to readable mode.
Just like some kind of encryption verification. -
-
-
After solving the existing problems, I found that callback function for
onWrite()
is not implemented.
And Unable to implement thenotify
andindicate
, my phone always reports error when sending notification listening requests to ESP32.NRF.setServices({ 0x1901: { 0x1902: { value : "Hello", broadcast : true, readable : true, writable : true, notify : true, indicate: true, onWrite: (event) => { console.log("Got: ", event); } } } });
-
-
好好学习,天天向上。