Yes its Espruino Wifi with embedded ESP8266. The previous with wifi.at.debug() capture was indeed wrong and from the startup.
Here is better one from the failure case:
["AT+CIPSEND=3,339\r\n" ] "2," <--- "2," ] "2,CLOSED\r\n" <--- "CLOSED\r\n" ] "2,CONNECT\r\n\r\n+IPD,2,367:GET /rand?c" <--- "2,CONNECT\r\n\r\n+IPD,2,367:GET /rand?c" ] "+IPD,2,356:allback=sensors&_=1475779474639 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW" <--- "allback=sensors&_=1475779474639 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW" ] "+IPD,2,222:64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept" <--- "64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept" ] "+IPD,2,76:-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n" <--- "-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n" ["AT+CIPSEND=2,339\r\n" ] "4,CL" <--- "4,CL" ] "4,CLOSED\r\n0,CLOSED\r\n" <--- "OSED\r\n0,CLOSED\r\n" ] "0,CON" <--- "0,CON" ] "0,CONNECT\r\n\r\n+IPD,0,367:GET /rand?callback=sensors&_=147" <--- "NECT\r\n\r\n+IPD,0,367:GET /rand?callback=sensors&_=147" ] "+IPD,0,335:5779474640 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36" <--- "5779474640 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36" ] "+IPD,0,200: (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept-Encoding: gzip, deflat" <--- " (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept-Encoding: gzip, deflat" ] "+IPD,0,53:e, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n4,CONNECT\r\n\r\n+IPD,4,367:GET /rand?callback=sensors&_=1475779456262 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection" <--- "e, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n4,CONNECT\r\n\r\n+IPD,4,367:GET /rand?callback=sensors&_=1475779456262 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection" ] "+IPD,4,281:: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n" <--- ": keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n" ["AT+CIPSEND=0,340\\r\n" ] "1,CLOSED\r\n" <--- "1,CLOSED\r\n" ] "1,CONNECT\r\n\r\n+IPD,1,367:GET /rand?callback=sensors&_=1475779474641 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (K" <--- "1,CONNECT\r\n\r\n+IPD,1,367:GET /rand?callback=sensors&_=1475779474641 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (K" ["AT+CIPSEND=4,339\r\n" ] "+IPD,1,197:HTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n" <--- "HTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n" ] "3,CL" <--- "3,CL" ] "3,CLOSED\r\n" <--- "OSED\r\n" ] "3,CONNECT\r\n\r\n+IPD,3,367:GET /rand?callback=sensors&_=1475779447035 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari" <--- "3,CONNECT\r\n\r\n+IPD,3,367:GET /rand?callback=sensors&_=1475779447035 HTTP/1.1\r\nHost: 192.168.100.184\r\nConnection: keep-alive\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari" ["AT+CIPSEND=1,339\r\n" ] "+IPD,3,152:/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n" <--- "/537.36\r\nAccept: */*\r\nReferer: http://192.168.100.97:8081/gauge.html\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8,fi;q=0.6\r\n\r\n" ["AT+CIPSEND=3,339\r\n" >
The issue is that since I cannot control the requests the server should fail gracefully, restart and not jam.
@samppa started
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.
Yes its Espruino Wifi with embedded ESP8266.
The previous with wifi.at.debug() capture was indeed wrong and from the startup.
Here is better one from the failure case:
The issue is that since I cannot control the requests the server should fail gracefully, restart and not jam.