Library to use a wifly module: RN 131 C/G
Dependents: RN-XV_simple_server
Diff: Wifly.h
- Revision:
- 12:fd6874542b28
- Parent:
- 11:6eb90004d92a
- Child:
- 13:7d86a4bd8eb7
--- a/Wifly.h Wed Sep 21 09:31:47 2011 +0000 +++ b/Wifly.h Thu Oct 20 09:28:32 2011 +0000 @@ -104,21 +104,21 @@ * * @return true if ACK has been found in the response from the wifi module. False otherwise or if there is no response in 3s. */ - bool Send(char * str, char * ACK, char * res = NULL); + bool send(char * str, char * ACK, char * res = NULL); /** * Connect the wifi module to the network. Return true if set correctly, false if not. * * @return true if connected, false otherwise */ - bool Join(); + bool join(); /** * Create an adhoc network with the ssid contained in the constructor * * @return true if the network is well created, false otherwise */ - bool CreateAdhocNetwork(); + bool createAdhocNetwork(); /** * Receive a string to the wifi module by serial port @@ -132,7 +132,7 @@ * * @return true if successful, false otherwise */ - bool CmdMode(); + bool cmdMode(); /** * To exit the command mode @@ -176,9 +176,6 @@ */ bool changeBaudrate(int baudrate); - - - private: Serial wifi; DigitalOut reset_pin; @@ -191,8 +188,8 @@ char netmask[20]; int channel; - char tmp_buf_rx[200]; - char buf_rx[200]; + char tmp_buf_rx[128]; + char buf_rx[128]; volatile int length; volatile bool new_msg;