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

Committer:
mskamoona
Date:
Mon May 04 03:41:46 2015 +0000
Revision:
5:e4c3ce3f66a2
Parent:
4:779396fc3f76
IR, Bluetooth, Telnet are working!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mskamoona 3:e8334a5aeeff 1 #ifndef DEFINES_H
mskamoona 3:e8334a5aeeff 2 #define DEFINES_H
mskamoona 3:e8334a5aeeff 3
mskamoona 4:779396fc3f76 4
mskamoona 4:779396fc3f76 5 #define DO 0xfd
mskamoona 4:779396fc3f76 6 #define WONT 0xfc
mskamoona 4:779396fc3f76 7 #define WILL 0xfb
mskamoona 4:779396fc3f76 8 #define DONT 0xfe
mskamoona 4:779396fc3f76 9 #define IAC 0xff
mskamoona 4:779396fc3f76 10 #define IAC_ECHO 1
mskamoona 4:779396fc3f76 11 #define NAWS 0x1F
mskamoona 4:779396fc3f76 12 #define SB 0xFA
mskamoona 4:779396fc3f76 13 #define SE 0xF0
mskamoona 4:779396fc3f76 14
mskamoona 4:779396fc3f76 15
mskamoona 4:779396fc3f76 16 #define ECHO_SERVER_ADDRESS "192.168.2.12"
mskamoona 3:e8334a5aeeff 17 #define ECHO_SERVER_PORT 23
mskamoona 3:e8334a5aeeff 18 #define login "login: "
mskamoona 3:e8334a5aeeff 19 #define passcurs "sword: "
mskamoona 4:779396fc3f76 20 //#define cursr "WRT:~# "
mskamoona 4:779396fc3f76 21 #define cursr ">"
mskamoona 3:e8334a5aeeff 22
mskamoona 3:e8334a5aeeff 23
mskamoona 3:e8334a5aeeff 24 // Telnet Related stuff
mskamoona 3:e8334a5aeeff 25 void cursor(char *check, bool sd,char c);
mskamoona 3:e8334a5aeeff 26
mskamoona 3:e8334a5aeeff 27 // Random string generator
mskamoona 3:e8334a5aeeff 28 char *randstring(size_t length, char *randptr);
mskamoona 3:e8334a5aeeff 29 void telnet_task(int taskNumber);
mskamoona 3:e8334a5aeeff 30
mskamoona 3:e8334a5aeeff 31 #endif