For Wifi personal security mode. It is always cumbersome to change the password whenever there is a breach in the network. and even more annoying is to distribute the passwords to the clients/guests. WifiFlexManager is a project that can change the password (with a random predefined length string) whenever the admin sends a specific IR code (through android app) and can retrieve the current password or the connected users (Through Bluetooth screen). So as a client who wants to get connected to the router, you only need to point your phone's IR towards the mbed and press a button, and the current password will be shown at your phone's screen.

Dependencies:   EthernetInterface HTTPServer RemoteIR SDFileSystem mbed-rpc mbed-rtos mbed

defines.h

Committer:
mskamoona
Date:
2015-05-04
Revision:
5:e4c3ce3f66a2
Parent:
4:779396fc3f76

File content as of revision 5:e4c3ce3f66a2:

#ifndef DEFINES_H
#define DEFINES_H


#define DO 0xfd
#define WONT 0xfc
#define WILL 0xfb
#define DONT 0xfe
#define IAC 0xff
#define IAC_ECHO 1
#define NAWS 0x1F
#define SB 0xFA
#define SE 0xF0


#define ECHO_SERVER_ADDRESS "192.168.2.12"
#define ECHO_SERVER_PORT 23
#define login "login: "
#define passcurs "sword: "
//#define cursr "WRT:~# "
#define cursr ">"


// Telnet Related stuff
void cursor(char *check, bool sd,char c);

// Random string generator
char *randstring(size_t length, char *randptr);
void telnet_task(int taskNumber);

#endif