Is there a way to specify a 30 seconds timeout in the GET/POST requests from http module?
There's no timeout built in to Espruino itself I'm afraid, but you may well be able to issue an AT command to the SIM808 that will configure the timeout?
Worst case it might be possible to do a bit of a hack to force the closure of the socket after a timeout, but hopefully it won't come to that.
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.
There's no timeout built in to Espruino itself I'm afraid, but you may well be able to issue an AT command to the SIM808 that will configure the timeout?
Worst case it might be possible to do a bit of a hack to force the closure of the socket after a timeout, but hopefully it won't come to that.