_____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |_____|___| _|_| |___|_|_|_|___| |_| http://espruino.com 1v76 Copyright 2015 G.Williams >echo(0); =undefined >wifi.at.debug(); ={ "line": "\"aÓ§ ÿ@\x11\x19×aÇ!\x19ÿeQQ\\ÿ)Âû", "lineCallback": function (a) { ... }, "handlers": { "+IPD": function (a) { ... } }, "lineHandlers": { }, "waiting": [ ] } ] "\"aÓ§ ÿ@\x11\x19×aÇ!\x19ÿeQQ\\ÿ)Âû\r" <--- "\r" ] "\n[Ven" <--- "\n[Ven" ] "[Vendor" <--- "dor" ] "[Vendor:ww" <--- ":ww" ] "[Vendor:http://www.a" <--- "w.a" ] "[Vendor:http://www.ai-t" <--- "i-t" ] "[Vendor:http://www.ai-thin" <--- "hin" ] "[Vendor:http://www.ai-thinker" <--- "ker" ] "[Vendor:http://www.ai-thinker.co" <--- ".co" ] "[Vendor:http://www.ai-thinker.com V" <--- "m V" ] "[Vendor:http://www.ai-thinker.com Versi" <--- "ersi" ] "[Vendor:http://www.ai-thinker.com Version:" <--- "on:" ] "[Vendor:http://www.ai-thinker.com Version:0.9" <--- "0.9" ] "[Vendor:http://www.ai-thinker.com Version:0.9.2.4" <--- ".2.4" ] "[Vendor:http://www.ai-thinker.com Version:0.9.2.4]\r\n" <--- "]\r\n" ] "\r\nread" <--- "\r\nread" ] "ready\r\n" <--- "y\r\n" ["ATE0\r\n" ] "ATE0" <--- "ATE0" ] "ATE0\r\r\n" <--- "\r\r\n" ] "\r\nOK\r\n" <--- "\r\nOK\r\n" ["AT+CIPMUX=1\r\n" ] "\r" <--- "\r" ] "\nOK" <--- "\nOK" ] "OK\r\n" <--- "\r\n" Connecting to WiFi ["AT+CWMODE=1\r\n" ] "n" <--- "n" ] "no " <--- "o " ] "no cha" <--- "cha" ] "no change" <--- "nge" ] "no change\r\n" <--- "\r\n" ["AT+CWJAP=\"TwilightZone\",\"(snip)\"\r\n" ] "\r" <--- "\r" ] "\nOK" <--- "\nOK" ] "OK\r\n" <--- "\r\n" Connected ["AT+CIFSR\r\n" ] "1" <--- "1" ] "192" <--- "92" ] "192.16" <--- ".16" ] "192.168.2" <--- "8.2" ] "192.168.2.10" <--- ".10" ] "192.168.2.102\r\n" <--- "2\r\n" ] "\r\nOK\r" <--- "\r\nOK\r" ] "\n" <--- "\n" setting up server on 192.168.2.102:80 ["AT+CIPSERVER=1,80\r\n" ] "\r\nO" <--- "\r\nO" ] "OK\r\n" <--- "K\r\n" ] "Lin" <--- "Lin" ] "Link\r\n" <--- "k\r\n" ] "Link" <--- "Link" ] "Link\r\n\r" <--- "\r\n\r" ] "\n+IPD," <--- "\n+IPD," ] "+IPD,0,2" <--- "0,2" ] "+IPD,0,298:GE" <--- "98:GE" ] "+IPD,0,296:T /st" <--- "T /st" ] "+IPD,0,291:atus." <--- "atus." ] "+IPD,0,286:json H" <--- "json H" ] "+IPD,0,280:TTP/1" <--- "TTP/1" ] "+IPD,0,275:.1\r\nHo" <--- ".1\r\nHo" ] "+IPD,0,269:st: 1" <--- "st: 1" ] "+IPD,0,264:92.16" <--- "92.16" ] "+IPD,0,259:8.2.10" <--- "8.2.10" ] "+IPD,0,253:2\r\nUs" <--- "2\r\nUs" ] "+IPD,0,248:er-Ag" <--- "er-Ag" ] "+IPD,0,243:ent: M" <--- "ent: M" ] "+IPD,0,237:ozill" <--- "ozill" ] "+IPD,0,232:a/5.0 " <--- "a/5.0 " ] "+IPD,0,226:(Wind" <--- "(Wind" ] "+IPD,0,221:ows N" <--- "ows N" ] "+IPD,0,216:T 6.3;" <--- "T 6.3;" ] "+IPD,0,210: WOW6" <--- " WOW6" ] "+IPD,0,205:4; rv" <--- "4; rv" ] "+IPD,0,200::36.0)" <--- ":36.0)" ] "+IPD,0,194: Geck" <--- " Geck" ] "+IPD,0,189:o/201" <--- "o/201" ] "+IPD,0,184:00101 " <--- "00101 " ] "+IPD,0,178:Firef" <--- "Firef" ] "+IPD,0,173:ox/36." <--- "ox/36." ] "+IPD,0,167:0\r\nAc" <--- "0\r\nAc" ] "+IPD,0,162:cept:" <--- "cept:" ] "+IPD,0,157: text/" <--- " text/" ] "+IPD,0,151:html," <--- "html," ] "+IPD,0,146:appli" <--- "appli" ] "+IPD,0,141:cation" <--- "cation" ] "+IPD,0,135:/xhtm" <--- "/xhtm" ] "+IPD,0,130:l+xml," <--- "l+xml," ] "+IPD,0,124:appli" <--- "appli" ] "+IPD,0,119:catio" <--- "catio" ] "+IPD,0,114:n/xml;" <--- "n/xml;" ] "+IPD,0,108:q=0.9" <--- "q=0.9" ] "+IPD,0,103:,*/*;" <--- ",*/*;" ] "+IPD,0,98:q=0.8\r" <--- "q=0.8\r" ] "+IPD,0,92:\nAcce" <--- "\nAcce" ] "+IPD,0,87:pt-La" <--- "pt-La" ] "+IPD,0,82:nguage" <--- "nguage" ] "+IPD,0,76:: en-" <--- ": en-" ] "+IPD,0,71:US,en;" <--- "US,en;" ] "+IPD,0,65:q=0.5" <--- "q=0.5" ] "+IPD,0,60:\r\nAcc" <--- "\r\nAcc" ] "+IPD,0,55:ept-En" <--- "ept-En" ] "+IPD,0,49:codin" <--- "codin" ] "+IPD,0,44:g: gz" <--- "g: gz" ] "+IPD,0,39:ip, de" <--- "ip, de" ] "+IPD,0,33:flate" <--- "flate" ] "+IPD,0,28:\r\nCon" <--- "\r\nCon" ] "+IPD,0,23:nectio" <--- "nectio" ] "+IPD,0,17:n: ke" <--- "n: ke" ] "+IPD,0,12:ep-al" <--- "ep-al" ] "+IPD,0,7:ive\r\n\r" <--- "ive\r\n\r" ] "+IPD,0,1:\n\r\nOK" <--- "\n\r\nOK" ] "OK\r\n" <--- "\r\n" Socket accept 0 "GET /status.json HTTP/1.1\r\nHost: 192.168.2.102\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: keep-alive\r\n\r\n" undefined json ["AT+CIPSEND=0,64\r\nHTTP/1.0 200 OK\r\nServer: Espruino 1v76\r\nContent-Type: text/plain" ] ">" <--- ">" ] "> " <--- " " ] "> \r\n" <--- "\r\n" ] "SEND " <--- "SEND " ] "SEND OK\r" <--- "OK\r" ] "\n" <--- "\n" ["AT+CIPSEND=0,64\r\n\r\n\r\n{gtg:true,dtf:false,missiles:[\"armed\",\"armed\",\"repair\",\"moth" ] "> " <--- "> " ] "> \r\nSEN" <--- "\r\nSEN" ] "SEND OK\r\n" <--- "D OK\r\n" ["AT+CIPSEND=0,9\r\nballed\"]}" ] "> " <--- "> " ] "> \r\n" <--- "\r\n" ] "SEND " <--- "SEND " ] "SEND OK\r" <--- "OK\r" ["AT+CIPCLOSE=0\r\n" ] "\n" <--- "\n" ] "\r\nO" <--- "\r\nO" ] "OK\r\n" <--- "K\r\n" ] "Unl" <--- "Unl" ] "Unlink" <--- "ink" ] "Unlink\r\n" <--- "\r\n" ] "Lin" <--- "Lin" ] "Link\r" <--- "k\r" ] "\n\r\n+I" <--- "\n\r\n+I" ] "+IPD,0" <--- "PD,0" ] "+IPD,0,299" <--- ",299" ] "+IPD,0,299:GET " <--- ":GET " ] "+IPD,0,295:/stat" <--- "/stat" ] "+IPD,0,290:us2.j" <--- "us2.j" ] "+IPD,0,285:son HT" <--- "son HT" ] "+IPD,0,279:TP/1." <--- "TP/1." ] "+IPD,0,274:1\r\nHos" <--- "1\r\nHos" ] "+IPD,0,268:t: 19" <--- "t: 19" ] "+IPD,0,263:2.168" <--- "2.168" ] "+IPD,0,258:.2.102" <--- ".2.102" ] "+IPD,0,252:\r\nUse" <--- "\r\nUse" ] "+IPD,0,247:r-Agen" <--- "r-Agen" ] "+IPD,0,241:t: Mo" <--- "t: Mo" ] "+IPD,0,236:zilla" <--- "zilla" ] "+IPD,0,231:/5.0 (" <--- "/5.0 (" ] "+IPD,0,225:Windo" <--- "Windo" ] "+IPD,0,220:ws NT " <--- "ws NT " ] "+IPD,0,214:6.3; " <--- "6.3; " ] "+IPD,0,209:WOW64" <--- "WOW64" ] "+IPD,0,204:; rv:3" <--- "; rv:3" ] "+IPD,0,198:6.0) " <--- "6.0) " ] "+IPD,0,193:Gecko/" <--- "Gecko/" ] "+IPD,0,187:20100" <--- "20100" ] "+IPD,0,182:101 F" <--- "101 F" ] "+IPD,0,177:irefox" <--- "irefox" ] "+IPD,0,171:/36.0" <--- "/36.0" ] "+IPD,0,166:\r\nAcce" <--- "\r\nAcce" ] "+IPD,0,160:pt: t" <--- "pt: t" ] "+IPD,0,155:ext/h" <--- "ext/h" ] "+IPD,0,150:tml,ap" <--- "tml,ap" ] "+IPD,0,144:plica" <--- "plica" ] "+IPD,0,139:tion/x" <--- "tion/x" ] "+IPD,0,133:html+" <--- "html+" ] "+IPD,0,128:xml,a" <--- "xml,a" ] "+IPD,0,123:pplica" <--- "pplica" ] "+IPD,0,117:tion/" <--- "tion/" ] "+IPD,0,112:xml;q=" <--- "xml;q=" ] "+IPD,0,106:0.9,*" <--- "0.9,*" ] "+IPD,0,101:/*;q=" <--- "/*;q=" ] "+IPD,0,96:0.8\r\nA" <--- "0.8\r\nA" ] "+IPD,0,90:ccept" <--- "ccept" ] "+IPD,0,85:-Lang" <--- "-Lang" ] "+IPD,0,80:uage: " <--- "uage: " ] "+IPD,0,74:en-US" <--- "en-US" ] "+IPD,0,69:,en;q=" <--- ",en;q=" ] "+IPD,0,63:0.5\r\n" <--- "0.5\r\n" ] "+IPD,0,58:Accep" <--- "Accep" ] "+IPD,0,53:t-Enco" <--- "t-Enco" ] "+IPD,0,47:ding:" <--- "ding:" ] "+IPD,0,42: gzip" <--- " gzip" ] "+IPD,0,37:, defl" <--- ", defl" ] "+IPD,0,31:ate\r\n" <--- "ate\r\n" ] "+IPD,0,26:Conne" <--- "Conne" ] "+IPD,0,21:ction:" <--- "ction:" ] "+IPD,0,15: keep" <--- " keep" ] "+IPD,0,10:-alive" <--- "-alive" ] "+IPD,0,4:\r\n\r\n\r" <--- "\r\n\r\n\r" ] "\nOK\r\n" <--- "\nOK\r\n"
@DrAzzy 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.