Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

Revision:
13:ef68cbcb4e9a
Parent:
12:ef988c7fe8a4
Child:
14:8d31d304eeb3
--- a/src/main.cpp	Mon Oct 19 21:09:22 2015 +0000
+++ b/src/main.cpp	Mon Oct 19 22:25:18 2015 +0000
@@ -3,38 +3,48 @@
 #include "LEDControl.h"
 #include "TestSuite.h"
 
-int main(){
+
+//Test cases for all functions
+void test(){
     
-
     Serial pc(USBTX, USBRX);
 
     pc.baud(115200);  // set what you want here depending on your terminal program speed
-    pc.printf("Device init\n");
-
+    pc.printf("---TESTING---\r\n");
     
     Whiffy whiffy();
-    pc.printf("Whiffy obj created\n");
+    pc.printf("Whiffy obj created\r\n");
     
     TestSuite tester;
-    pc.printf("Tester created\n");
+    pc.printf("Tester created\r\n");
     
-    pc.printf("START ReporterTest()\n");
+    pc.printf("START ReporterTest()\r\n");
     tester.ReporterTest();
-    pc.printf("END ReporterTest()\n");
+    pc.printf("END ReporterTest()\r\n");
 
     tester.LCDTest();
-    pc.printf("LCDTest done.\n");
+    pc.printf("LCDTest done.\r\n");
     
     tester.LEDTest();
-    pc.printf("LEDTest done.\n");
+    pc.printf("LEDTest done.\r\n");
 
     tester.WifiTest();
-    pc.printf("WifiTest done.\n");
+    pc.printf("WifiTest done.\r\n");
+
+}
 
+int main(){
     
+    //Open serial
+    Serial pc(USBTX, USBRX);
+    pc.baud(115200);
+    
+    WifiControl wifi;
+    char results[1024];
+    wifi.pollAP(results);
+    pc.printf("Access points found: \r\n");
+    pc.printf(results);
 
     
-    
-    
-    
-}
\ No newline at end of file
+    // test();
+}