espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.73k stars 741 forks source link

BLE/NRF and esp32_gatts_func.c #2493

Closed MaBecker closed 2 months ago

MaBecker commented 2 months ago

Some findings on forum BLE/NRF errors .

Will create a pr at the end when everything is working as expected.

image

MaBecker commented 2 months ago

Now it works - many thanks to Gordon!

>
>Event:ESP_GATTS_CONNECT_EVT gatts_if:4
Event:ESP_GATTS_CONNECT_EVT gatts_if:5
Event:ESP_GATTC_CONNECT_EVT gattc_if:3
gattc_event_handler: 40
Event:ESP_GAP_BLE_AUTH_CMPL_EVT
Event:ESP_GATTS_MTU_EVT gatts_if:4
Event:ESP_GATTS_MTU_EVT gatts_if:5
Event:ESP_GATTS_READ_EVT gatts_if:5
Event:ESP_GATTS_RESPONSE_EVT gatts_if:5
Event:ESP_GATTS_READ_EVT gatts_if:4
Event:ESP_GATTS_RESPONSE_EVT gatts_if:4
Event:ESP_GATTS_WRITE_EVT gatts_if:4
Event:ESP_GATTS_RESPONSE_EVT gatts_if:4
Got:  {
  "data": new Uint8Array([69, 115, 112, 114, 117, 105, 110, 111, 32]).buffer
 }
>