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:
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