I attempted to resolve this in post #9 > post #9   [Sanity check for Wifi and http modules](http://forum.espruino.com/comments/15243425/) but a resolution to capture the trace output was never responded to, and during the wait, I ended up having to stitch what I could: ``` // many iterations of the following as one contiguous block #489[r1,l2] Name String [1 blocks] "w" #490[r1,l0] Function { #491[r1,l2] Name Param "\xFFa" undefined #492[r1,l2] Name Param "\xFFb" undefined #494[r1,l2] Name String [1 blocks] "\xFFcod" #493[r1,l0] NativeString [1 blocks] "if(b)return a(b);f.cmd(\"AT+CWMODE=\"+p+\"\\r\\n\",1E3,function(b){\"no change\"!=b&&\"OK\"!=b&&\"WIFI DISCONNECT\"!=b?a(\"CWMODE failed: \"+(b?b:\"Timeout\")):a(null)})" #497[r1,l2] Name String [1 blocks] "\xFFsco" #495[r1,l0] Array(1) [ #496[r1,l2] Name Integer 0 #393[r46,l13] ... ] } #498[r1,l2] Name String [1 blocks] "q" #499[r6,l0] Function { #500[r1,l2] Name Param "\xFFa" undefined #502[r1,l2] Name String [1 blocks] "\xFFcod" #501[r1,l0] NativeString [1 blocks] "var b=a[0];void 0===e[b]&&e[5]?e[b]=\"Accept\":\"Wait\"==e[b]?e[b]=!0:f.cmd(\"AT+CIPCLOSE=\"+b+\"\\r\\n\",1E3,function(){e[b]=void 0})" #505[r1,l2] Name String [1 blocks] "\xFFsco" #503[r1,l0] Array(1) [ #504[r1,l2] Name Integer 0 #393[r46,l13] ... ] } #506[r1,l2] Name String [1 blocks] "r" #507[r6,l0] Function { #508[r1,l2] Name Param "\xFFa" undefined #510[r1,l2] Name String [1 blocks] "\xFFcod" #509[r1,l0] NativeString [1 blocks] "e[a[0]]=\"\"!=g[a[0]]?\"DataClose\":void 0" #513[r1,l2] Name String [1 blocks] "\xFFsco" #511[r1,l0] Array(1) [ #512[r1,l2] Name Integer 0 #393[r46,l13] ... ] } #514[r1,l2] Name String [1 blocks] "u" #515[r1,l0] Function { #516[r1,l2] Name Param "\xFFa" undefined #517[r1,l2] Name Param "\xFFb" undefined #519[r1,l2] Name String [1 blocks] "\xFFcod" #518[r1,l0] NativeString [1 blocks] "var c=0==p;p|=a;c?(\"1v91\"==process.version?\n(x.reset(),t.setup(115200,{rx:A3,tx:A2})):t.setup(115200,{rx:A3,tx:A2,cts:x}),f=require(\"AT\").connect(t),f.register(\"+IPD\",D),f.registerLine(\"0,CONNECT\",q),f.registerLine(\"1,CONNECT\",q),f.registerLine(\"2,CONNECT\",q),f.registerLine(\"3,CONNECT\",q),f.registerLine(\"4,CONNECT\",q),f.registerLine(\"0,CLOSED\",r),f.registerLine(\"1,CLOSED\",r),f.registerLine(\"2,CLOSED\",r),f.registerLine(\"3,CLOSED\",r),f.registerLine(\"4,CLOSED\",r),f.registerLine(\"WIFI CONNECTED\",function(){n|=k.CLIENT;exports.emit(\"associated\")}),\nf.registerLine(\"WIFI GOT IP\",function(){exports.emit(\"connected\")}),f.registerLine(\"WIFI DISCONNECTED\",function(){n&=~k.CLIENT;exports.emit(\"disconnected\")}),exports.at=f,require(\"NetworkJS\").create(B),f.cmd(\"\\r\\nAT+RST\\r\\n\",1E4,function l(a){if(\"ready\"==a||\"Ready.\"==a)setTimeout(function(){f.cmd(\"ATE0\\r\\n\",1E3,function F(a){if(\"ATE0\"==a)return F;\"OK\"==a?f.cmd(\"AT+CIPDINFO=1\\r\\n\",1E3,function(a){if(\"OK\"!=a)return b(\"CIPDINFO failed: \"+(a?a:\"Timeout\"));f.cmd(\"AT+CIPMUX=1\\r\\n\",1E3,function(a){if(\"OK\"!=\na)return b(\"CIPMUX failed: \"+(a?a:\"Timeout\"));f.cmd(\"AT+UART_CUR=115200,8,1,0,2\\r\\n\",500,function(a){if(\"OK\"!=a)return b(\"UART_CUR failed: \"+(a?a:\"Timeout\"));w(b)})})}):b(\"ATE0 failed: \"+(a?a:\"Timeout\"))})},500);else if(void 0===a)b(\"No 'ready' after AT+RST\");else return l}),digitalWrite(G,1),digitalWrite(y,1)):w(b)" #522[r1,l2] Name String [1 blocks] "\xFFsco" #520[r1,l0] Array(1) [ #521[r1,l2] Name Integer 0 #393[r46,l13] ... ] } #523[r1,l2] Name String [1 blocks] "C" #524[r1,l0] Function { #525[r1,l2] Name Param "\xFFa" undefined #526[r1,l2] Name Param "\xFFb" undefined #528[r1,l2] Name String [1 blocks] "\xFFcod" #527[r1,l0] NativeString [1 blocks] "b=b||function(){};(p&=~a)?w(b,null):(t.removeAllListeners(),f=void 0,exports.at=void 0,digitalWrite(y,0),e=[],setTimeout(b,1))" #531[r1,l2] Name String [1 blocks] "\xFFsco" #529[r1,l0] Array(1) [ #530[r1,l2] Name Integer 0 #393[r46,l13] ... ] } #532[r1,l2] Name String [1 blocks] "G" #533[r1,l0] Pin 13 #534[r1,l2] Name String [1 blocks] "y" #535[r1,l0] Pin 14 #536[r1,l2] Name String [1 blocks] "x" #537[r2,l1] ... #538[r1,l2] Name String [1 blocks] "t" #546[r3,l1] ... #552[r1,l2] Name String [1 blocks] "k" #553[r1,l0] Object { #554[r1,l2] Name String [2 blocks] "CLIENT"= int 1 #556[r1,l2] Name String [1 blocks] "AP"= int 2 } #557[r1,l2] Name String [1 blocks] "H" #558[r1,l0] Array(5) [ #560[r1,l2] Name Integer 0 #559[r1,l0] String [1 blocks] "open" #562[r1,l2] Name Integer 1 #561[r1,l0] String [1 blocks] "wep" #564[r1,l2] Name Integer 2 #563[r1,l0] String [1 blocks] "wpa_psk" #566[r1,l2] Name Integer 3 #565[r1,l0] String [1 blocks] "wpa2_psk" #569[r1,l2] Name Integer 4 #567[r1,l0] String [2 blocks] "wpa_wpa2_psk" ] #570[r1,l2] Name String [1 blocks] "p"= int 1 #571[r1,l2] Name String [1 blocks] "n"= int 1 #572[r1,l2] Name String [1 blocks] "f" #1011[r3,l2] ... #573[r1,l2] Name String [1 blocks] "e" #574[r1,l0] Array(2) [ #579[r1,l2] Name Integer 0= bool true #581[r1,l2] Name Integer 1 undefined ] #575[r1,l2] Name String [1 blocks] "v" #576[r1,l0] Array(0) [ ] #577[r1,l2] Name String [1 blocks] "g" #578[r1,l0] Array(5) [ #580[r1,l2] Name Integer 0 #2413[r1,l0] String [1 blocks] "" // ad infinitum ```
Just uncovered that there are characters in the output that prevent rendering here, so will provide the text output as an upload. The best I could do, as there was a massive amount of characters in the console text area I attempted to copy to the clipboard, and that process was flawed, limited by what could be seen as mouse scroll prevented more than around twenty at a time. I even attempted to just move to the top of the console window, but the sequence of events that led up to the decision to perform the dump() and trace() were forever gone to the Goddess of byte reclaim heaven. [eof]