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 SPWF01SA by
Diff: SPWFSA01.h
- Revision:
- 5:f17d6351e942
- Parent:
- 3:2af9df1068a5
- Child:
- 13:f21e4e73bbb6
diff -r 042d5b9bb6e7 -r f17d6351e942 SPWFSA01.h
--- a/SPWFSA01.h Thu Jun 30 08:42:47 2016 +0000
+++ b/SPWFSA01.h Thu Jun 30 08:54:08 2016 +0000
@@ -48,11 +48,10 @@
/**
* Enable/Disable DHCP
*
- * @param enabled DHCP enabled when true
- * @param mode mode of DHCP 0-softAP, 1-station, 2-both
+ * @param mode mode of DHCP 2-softAP, 1-on, 0-off
* @return true only if SPWFSA01 enables/disables DHCP successfully
*/
- bool dhcp(bool enabled, int mode);
+ bool dhcp(int mode);
/**
* Connect SPWFSA01 to AP
@@ -95,8 +94,8 @@
/**
* Open a socketed connection
*
- * @param type the type of socket to open "UDP" or "TCP"
- * @param id id to give the new socket, valid 0-4
+ * @param type the type of socket to open "u" (UDP) or "t" (TCP)
+ * @param id id to get the new socket number, valid 0-7
* @param port port to open connection with
* @param addr the IP address of the destination
* @return true only if socket opened successfully
