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.
Diff: Wifly.h
- Revision:
- 1:acd37b0d1ddb
- Parent:
- 0:461ddbab4fd1
- Child:
- 2:6d2a681c5cdf
--- a/Wifly.h Mon Apr 16 23:10:37 2012 +0000
+++ b/Wifly.h Tue Apr 17 09:38:44 2012 +0000
@@ -36,7 +36,6 @@
#include "CBuffer.h"
#include "CmdBuffer.h"
-//LocalFileSystem local("local");
/** Wifly Class
@@ -77,7 +76,7 @@
* @param baudrate speed of the communication (default: 460800)
*/
Wifly( PinName tx, PinName rx, PinName reset, char * ssid = "CNCAirbrush", char * ip = "169.254.1.1",
- char * netmask = "255.255.0.0", int channel = 1, int baudrate = 460800);
+ char * netmask = "255.255.0.0", int channel = 1, int baudrate = 115200);
/**
* Send a string to the wifi module by serial port. This function desactivates the user interrupt handler when a character is received to analyze the response from the wifi module.
@@ -100,7 +99,7 @@
bool hasCmd();
/**
- * Connect the wifi module to the ssid contained in the constructor.
+ * Fetch the most recent command
*
* @return the command on top of the stack
*/
@@ -213,6 +212,7 @@
char ip[20];
char netmask[20];
char imgpos;
+ char lastchar;
int channel;
FILE *fp;
CBuffer buf_wifly;