2 posts / 0 new
Last post
z0806020433
Offline
Last seen:7 months 1 week ago
加入:2016-05-05 13:32
from extern sleep mode to active mode

hi !

In my project, turn on my device, i let it advertising 10s, and the device goes into deep sleep mode, if there is no connection, the device stop advertising, and wait for waking up by a button.
during the advertising, the device is connected, then i change the device from deep sleep mode to active mode by calling the function disable_sleep_mode(), and i set a pin to high level. but i can not do it, i found the pin is still low level.
please help me, thanks!

Keywords:
Device:
Qinjiny_Dialog
Offline
Last seen:2 weeks 4 days ago
Staff
加入:2016-11-01 05:47
I'm assuming you're building

I'm assuming you're building this project based on ble_app_sleepmode reference project as what you described is quite similar to what it should do.

For your problem, you can replace the functionarch_set_extended_sleep()withapp_disable_sleeporarch_disable_sleepin the callbackuser_app_connection确保设备保持清醒the connection.

To use GPIO functions, make sure you properly initialize them before using any control commands directly