Search found 4 matches

by UriShX
Thu Jun 11, 2020 8:00 am
Forum: ESP32 Arduino
Topic: Checking BLE descriptor in class from spawned task
Replies: 5
Views: 5646

Re: Checking BLE descriptor in class from spawned task

Thanks mate, I'm always happy to learn

Do you have any idea why the 2902 descriptor isn't showing? Can you maybe point me to how to check?
by UriShX
Wed Jun 10, 2020 10:40 pm
Forum: ESP32 Arduino
Topic: Checking BLE descriptor in class from spawned task
Replies: 5
Views: 5646

Re: Checking BLE descriptor in class from spawned task

I'm trying to test if the notification descriptor is turned off or on, should I be doing it another way? In my original Arduino script it worked even though getValue() returns a pointer, so I never stopped to think about it. In any case I can't really do anything with it since in my client I'm still...
by UriShX
Wed Jun 10, 2020 9:02 am
Forum: ESP32 Arduino
Topic: Checking BLE descriptor in class from spawned task
Replies: 5
Views: 5646

Re: Checking BLE descriptor in class from spawned task

Ok, tried referencing a pointer in the task to the location of a class pointer which in turn points to getValue(). That's what I think I did, at least. In line 27 I declare a uint8_t pointer, then assign it to the getValue() pointer in line 203, after setting up the ble service. I then direct a poin...
by UriShX
Tue Jun 09, 2020 3:27 pm
Forum: ESP32 Arduino
Topic: Checking BLE descriptor in class from spawned task
Replies: 5
Views: 5646

Checking BLE descriptor in class from spawned task

Hi, My question is mostly C++ and FreeRTOS related, so if that's not in the scope of this forum please let me know where I might take. I've been trying to migrate some code I have in a single Arduino sketch to a class in a separate .h, so I can use it as a library. My code uses JSON data sent over B...