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.
Diff: Wifly/Wifly.h
- Revision:
- 4:0bcec6272784
- Parent:
- 3:9aa05e19c62e
- Child:
- 5:81e264dbbf03
--- a/Wifly/Wifly.h Thu Dec 20 10:37:52 2012 +0000 +++ b/Wifly/Wifly.h Thu Dec 20 15:08:58 2012 +0000 @@ -188,6 +188,15 @@ * @returns true if successful */ bool sendCommand(const char * cmd, const char * ack = NULL, char * res = NULL, int timeout = DEFAULT_WAIT_RESP_TIMEOUT); + + /* + * Return true if the module is using dhcp + * + * @returns true if the module is using dhcp + */ + bool isDHCP() { + return state.dhcp; + } bool gethostbyname(const char * host, char * ip);