Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WiflyInterface by
Diff: WiflyInterface.cpp
- Revision:
- 39:2b8018d66b68
- Parent:
- 35:ce3afc021ec2
- Child:
- 41:598257b3e319
--- 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;
}
