Search found 3 matches

by esp32New956832
Wed Nov 27, 2024 2:25 pm
Forum: General Discussion
Topic: esp32 ble suspend inside registerForNotify
Replies: 2
Views: 969

Re: esp32 ble suspend inside registerForNotify

I have solved problem.
Problem was inside BLE library, it use semaphore for waiting event (connect/scan/RegisterNotify) but without timeout, sometimes this event BLE library dont receive as result we wait infinite time. I have changed m_semaphore.Wait to to m_semaphore.timedWait
by esp32New956832
Mon Nov 25, 2024 5:20 am
Forum: General Discussion
Topic: esp32 ble suspend inside registerForNotify
Replies: 2
Views: 969

Re: esp32 ble suspend inside registerForNotify

I remove from code pRemoteCharacteristic->registerForNotify(nullptr); when disconnect device. And now it still suspend inside registerForNotify when try write 1 to descriptor 0x2902 . As i understood it happen when code call registerForNotify but device receive disconnect event. bool BLE_BMS_JK::con...
by esp32New956832
Sun Nov 24, 2024 1:52 pm
Forum: General Discussion
Topic: esp32 ble suspend inside registerForNotify
Replies: 2
Views: 969

esp32 ble suspend inside registerForNotify

Hi I am newbie in esp32. I would like connect to BLE device make few requests and disconnect, and repeat it periodically. The main problem is - device freeze inside BLE api registerForNotify , it happens seldom if signal good and often(on 3-5 request) if poor . I think problem happen when we inside ...