taks / esp32-nimble

A wrapper for the ESP32 NimBLE Bluetooth stack.
Apache License 2.0
118 stars 35 forks source link

Getting stuck in notify after a while #151

Open vermasrijan19 opened 3 days ago

vermasrijan19 commented 3 days ago

I am using the ble to transmit constant sensor data, after running for a while, there are some Error and then code seemingly gets stuck in in notify loop.

All callbacks are working as expected but the loop in which i am transmitting data is stuck.

In the below logs I manually disconnect after a while of it being stuck in the loop

I (183351) walk_rs::initialize_components: SuccessNotify
I (183360) NimBLE: GATT procedure initiated: notify;
I (183363) NimBLE: att_handle=18

I (183367) walk_rs::initialize_components: ErrorGatt
I (183375) NimBLE: GATT procedure initiated: notify;
I (183378) NimBLE: att_handle=18

I (183382) walk_rs::initialize_components: ErrorGatt
I (183391) NimBLE: GATT procedure initiated: notify;
I (183393) NimBLE: att_handle=18

I (183398) walk_rs::initialize_components: ErrorGatt
I (183406) NimBLE: GATT procedure initiated: notify;
I (183409) NimBLE: att_handle=18

I (183413) walk_rs::initialize_components: ErrorGatt
I (183426) NimBLE: GATT procedure initiated: notify;
I (183426) NimBLE: att_handle=18

I (183429) walk_rs::initialize_components: SuccessNotify
I (183438) NimBLE: GATT procedure initiated: notify;
I (183440) NimBLE: att_handle=18

I (183445) walk_rs::initialize_components: SuccessNotify
I (183453) NimBLE: GATT procedure initiated: notify;
I (183456) NimBLE: att_handle=18

I (183460) walk_rs::initialize_components: SuccessNotify
I (183469) NimBLE: GATT procedure initiated: notify;
I (183472) NimBLE: att_handle=18

I (183476) walk_rs::initialize_components: SuccessNotify
I (183485) NimBLE: GATT procedure initiated: notify;
I (183488) NimBLE: att_handle=18

I (183492) walk_rs::initialize_components: SuccessNotify
I (183501) NimBLE: GATT procedure initiated: notify;
I (183503) NimBLE: att_handle=18

I (183508) walk_rs::initialize_components: SuccessNotify
I (183516) NimBLE: GATT procedure initiated: notify;
I (183519) NimBLE: att_handle=18

I (183524) walk_rs::initialize_components: SuccessNotify
I (183533) NimBLE: GATT procedure initiated: notify;
I (183535) NimBLE: att_handle=18

I (222177) walk_rs::initialize_components: Client disconnected (Err(Remote User Terminated Connection))