LeeT WiFiLamp code and test
Dependencies: ESP8266_WebServer mbed
Fork of WiFiLamp by
Diff: main.cpp
- Revision:
- 25:841fc9daffa5
- Parent:
- 24:849265425708
- Child:
- 26:ea5e0ff46492
diff -r 849265425708 -r 841fc9daffa5 main.cpp --- a/main.cpp Mon Jan 05 19:23:20 2015 +0000 +++ b/main.cpp Tue Jan 06 18:44:43 2015 +0000 @@ -108,12 +108,6 @@ pc.printf("SoftAP MAC: %s, SoftAP IP: %s\r\n", apMAC.c_str(), apIP.c_str()); } - //std::list<std::string> apList = server.ListAvailableSSID(); - - //for( std::list<std::string>::iterator it = apList.begin(); it!=apList.end(); ++it ) { - // pc.printf("Found SSID %s\r\n", (*it).c_str()); - //} - setColor( 0, 25, 0); wait_ms(500); setColor( 0, 0, 0); @@ -132,22 +126,6 @@ httpReply += "<tr><td align='center'>"; httpReply += "<img style='margin-right:2px' src='colormap.gif' usemap='#colormap' />"; httpReply += "<map id='colormap' name='colormap'>"; - //int startx = 63; - //int countx = 7; - //for( int y=0; y<=180; y+=15) { - // int endx = startx + (countx*18); - // for( int x=startx; x<endx; x+= 18) { - // sprintf(temp, areaHTML, x,y, x+9,y+4, x+9,y+15, x,y+19, x-9,y+15, x-9,y+4); - // httpReply += temp; - // } - // if( y < 90 ) { - // startx -= 9; - // countx++; - // } else { - // startx += 9; - // countx--; - // } - //} httpReply += "</map></td></tr><tr><td><span onClick=\"changeColor('#000000')\">Turn Off</span></td></tr></table>"; httpReply += htmlTail; server.SendReply(request->LinkID, httpReply, mimeHTML);