So... I have the console over Wifi almost working. It's working, but there is a deadlock. What happens is that jshTransmit assumes that the device TX happens via interrupts and not via idle loop polling. When the TX buffer is full, it busy-waits: https://github.com/espruino/Espruino/blob/master/src/jsdevices.c#L119-L125. But the network is not interrupt driven, it requires the idle-loop calls. Thoughts?
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.
So... I have the console over Wifi almost working. It's working, but there is a deadlock. What happens is that jshTransmit assumes that the device TX happens via interrupts and not via idle loop polling. When the TX buffer is full, it busy-waits: https://github.com/espruino/Espruino/blob/master/src/jsdevices.c#L119-L125. But the network is not interrupt driven, it requires the idle-loop calls. Thoughts?