Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
My sensor is always HIGH_UNDIRECTED_DISCOVERABLE. In the callback hello_sensor_advertisement_stopped function, I restart the bleprofile_Discoverable(HIGH_UNDIRECTED_DISCOVERABLE, NULL ).
My application works fine, I have two buttons in my sensor and I change led's color (to see if my app is not freez...). But when my board is ON more than 12 hours, I can't connect to it.... I can push button to change color, so my app works fine (uart works too) but it's like the BLE is gone in sleep mode.
Yes, my project works perfectly and, later some point of time (3hrs, 12hrs or 18hrs..), it will stop.
My sensor is always bleprofile_Discoverable() active.
A client can connect to it with an other CYW20736 or a smartphone.
When the point of time is delayed my sensor application seems working (I can push button and change led's color) but the BLEis not discoverable (I can't see it with my smartphone)...It's seems that only the BLE layer is not active...
In hello_sensor_advertisement_stopped() callback, I have tried to replace bleprofile_Discoverable(HIGH) by a set_adv(1) function (i can't remeber the function) but the problem is unchanged..
I have tried with bleprofile_Discoverable(LOW) the problem seem solved (my board is always running and works since 5 days).
I hope the problem was the use of LOW_UNDIRECTED in place of HIGH_UNDIRECTED..