Unfortunately the issue is that on STM32, setDeepSleep doesn't allow the Serial port to keep working - so any communications from the WiFi will get ignored.
Deep Sleep is less of an issue with WiFi on since the WiFi module draws so much more power than the STM32 does.
Realistically the best thing to do is to only enable deep sleep when the WiFi is off, and to disable it when it is on.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Great, glad you got it sorted!
Unfortunately the issue is that on STM32,
setDeepSleep
doesn't allow the Serial port to keep working - so any communications from the WiFi will get ignored.Deep Sleep is less of an issue with WiFi on since the WiFi module draws so much more power than the STM32 does.
Realistically the best thing to do is to only enable deep sleep when the WiFi is off, and to disable it when it is on.