Hi there,
I am trying to run your code (very useful by the way) with another gamepad, which of course uses the same HID service and similar layout (one joystick and 4 buttons). I run it on ESP32C3.
For some reason it does crash after the 4th notify callback is registered, does anyone have an idea of what the problem could be?I increased the stack size by 1024 bytes but it did not change anything.
Joystick Task Created
AB Button Task Created
CD Button Task Created
Starting ESP32 BLE Client...
BLE Advertised Device found: Name: , Address: 71:a0:e4:31:92:d5, manufacturer data: 060001092002f56b465dc6a555271d24da5e0085cdb558005eec8faca8
Server name does not match, not our server
BLE Advertised Device found: Name: BLE-M3, Address: 22:03:d7:00:24:00, appearance: 961, serviceUUID: 00001812-0000-1000-8000-00805f9b34fb
Found VRBOX Server
Server has HID service
Offline, start a scan
Forming a connection to 22:03:d7:00:24:00
- Created client
onConnect event
- Connected to server
- Found HID service
Characteristic UUID: 00002a4b-0000-1000-8000-00805f9b34fb
Found Characteristic UUID: 00002a4b-0000-1000-8000-00805f9b34fb
Characteristic UUID: 00002a4a-0000-1000-8000-00805f9b34fb
Found Characteristic UUID: 00002a4a-0000-1000-8000-00805f9b34fb
Characteristic UUID: 00002a4c-0000-1000-8000-00805f9b34fb
Found Characteristic UUID: 00002a4c-0000-1000-8000-00805f9b34fb
Characteristic UUID: 00002a4e-0000-1000-8000-00805f9b34fb
Found Characteristic UUID: 00002a4e-0000-1000-8000-00805f9b34fb
Characteristic UUID: 00002a4d-0000-1000-8000-00805f9b34fb
Found a report characteristic
Can notify
Notify callback for characteristic 00002a4d-0000-1000-8000-00805f9b34fb of data length 9
data: 00 93 00 C8 00 8E 03 8E 03
Callback registered for: Handle: 0x00000020, 32
Characteristic UUID: 00002a4d-0000-1000-8000-00805f9b34fb
Found a report characteristic
Can notify
Notify callback for characteristic 00002a4d-0000-1000-8000-00805f9b34fb of data length 9
data: 00 93 00 C8 00 8E 03 8E 03
Callback registered for: Handle: 0x00000026, 38
Characteristic UUID: 00002a4d-0000-1000-8000-00805f9b34fb
Found a report characteristic
Can notify
Notify callback for characteristic 00002a4d-0000-1000-8000-00805f9b34fb of data length 9
data: 00 93 00 C8 00 8E 03 8E 03
Callback registered for: Handle: 0x0000002C, 44
Characteristic UUID: 00002a4d-0000-1000-8000-00805f9b34fb
Found a report characteristic
Can notify
Notify callback for characteristic 00002a4d-0000-1000-8000-00805f9b34fb of data length 9
data: 00 93 00 C8 00 8E 03 8E 03
Callback registered for: Handle: 0x00000032, 50
/* crash occurs here*/ ESP-ROM:esp32c3-api1-20210207
Not sure what the cause is. Sadly on the C3 there is no exception decoder (yet) so i cannot see the exact cause of the issue.
If anyone has an idea on what the problem could be, it will be very welcome.
Thanks
Hi there, I am trying to run your code (very useful by the way) with another gamepad, which of course uses the same HID service and similar layout (one joystick and 4 buttons). I run it on ESP32C3. For some reason it does crash after the 4th notify callback is registered, does anyone have an idea of what the problem could be?I increased the stack size by 1024 bytes but it did not change anything.
Not sure what the cause is. Sadly on the C3 there is no exception decoder (yet) so i cannot see the exact cause of the issue. If anyone has an idea on what the problem could be, it will be very welcome. Thanks