Damien Frost / WiflyInterfaceMessaging

Fork of WiflyInterface by Damien Frost

Revision:
39:2b8018d66b68
Parent:
35:ce3afc021ec2
Child:
41:598257b3e319
diff -r e08d655acee6 -r 2b8018d66b68 WiflyInterface.cpp
--- a/WiflyInterface.cpp	Thu Nov 24 16:52:45 2016 +0000
+++ b/WiflyInterface.cpp	Sun May 21 21:33:51 2017 +0000
@@ -9,18 +9,18 @@
 
 
 WiflyInterface::WiflyInterface( PinName tx, PinName rx, PinName reset, PinName tcp_status,
-                                const char * ssid, const char * phrase, Security sec) :
-    Wifly(tx, rx, reset, tcp_status, ssid, phrase, sec)
+                                const char * ssid, const char * phrase, Security sec, Serial* messagesPort) :
+    Wifly(tx, rx, reset, tcp_status, ssid, phrase, sec, messagesPort)
 {
     ip_set = false;
-    DBG("WiflyInterface Constructed");
+    DBG(SerialCommPort, "WiflyInterface Constructed");
 }
 
 int WiflyInterface::init()
 {
     state.dhcp = true;
     reset();
-    INFO("WiflyInterface Initialized.");
+    INFO(SerialCommPort, "WiflyInterface Initialized.");
     return 0;
 }
 
@@ -41,7 +41,7 @@
 {
     // join() returns a boolean, it does not like it all the time, thus casting it as int
     int ii = (int) join();
-    INFO("join() complete, return value: %d",ii);
+    INFO(SerialCommPort, "join() complete, return value: %d",ii);
     return ii;
 }