mbed official WiflyInterface (interface for Roving Networks Wifly modules)
Dependents: Wifly_HelloWorld Websocket_Wifly_HelloWorld RPC_Wifly_HelloWorld HTTPClient_Wifly_HelloWorld ... more
Legacy Networking Libraries
This is an mbed 2 WiFI library. For mbed 5, the networking libraries have been revised to better support additional network stacks and thread safety. View information about WiFi interfaces in mbed OS 5 here.
Revision 9:c77799a03294, committed 2014-01-28
- Comitter:
- Bogdan Marinescu
- Date:
- Tue Jan 28 11:00:48 2014 +0200
- Parent:
- 8:e387c1d18663
- Commit message:
- Address various potential buffer overflow issues
https://mbed.org/comments/cr/93/4779/#c8499
Changed in this revision
Wifly/Wifly.cpp | Show annotated file Show diff for this revision Revisions of this file |
Wifly/Wifly.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r e387c1d18663 -r c77799a03294 Wifly/Wifly.cpp --- a/Wifly/Wifly.cpp Fri Oct 25 05:22:48 2013 +0000 +++ b/Wifly/Wifly.cpp Tue Jan 28 11:00:48 2014 +0200 @@ -67,7 +67,7 @@ bool Wifly::join() { - char cmd[20]; + char cmd[75]; for (int i= 0; i < MAX_TRY_JOIN; i++) { @@ -543,4 +543,4 @@ attach_rx(true); DBG("result: %d\r\n", result) return result; -} \ No newline at end of file +}
diff -r e387c1d18663 -r c77799a03294 Wifly/Wifly.h --- a/Wifly/Wifly.h Fri Oct 25 05:22:48 2013 +0000 +++ b/Wifly/Wifly.h Tue Jan 28 11:00:48 2014 +0200 @@ -212,8 +212,8 @@ RawSerial wifi; DigitalOut reset_pin; DigitalIn tcp_status; - char phrase[30]; - char ssid[30]; + char phrase[65]; + char ssid[33]; const char * ip; const char * netmask; const char * gateway; @@ -239,4 +239,4 @@ char * getStringSecurity(); }; -#endif \ No newline at end of file +#endif