NNN40 run a HTTP server with RPC using Soft AP mode

Dependencies:   WIFI_API_32kRAM mbed

Fork of HTTP-Server by Francois Berder

The sample code will run as a WiFi Soft AP mode with given AP configuration setting including SSID name and password. IP address (fixed to 192.168.2.1 for the current version of WIFI_API)of AP router will be print out once Soft AP mode is operating.

User can open their web browser and go to http://192.168.2.1/. and have a try on switch on a led. Firstly, we need to create an object to control a led

/media/uploads/wgd8700/http_server2.png

Then, led can be switch on using RPC command /media/uploads/wgd8700/http_server3.png

More information cab be found from the links below

https://developer.mbed.org/users/feb11/code/HTTP-Server/

https://developer.mbed.org/cookbook/Interfacing-Using-RPC

Committer:
wgd8700
Date:
Wed Sep 16 02:43:42 2015 +0000
Revision:
11:f57e9de44f6f
Parent:
0:9e4bcb10b3e3
First commit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
feb11 0:9e4bcb10b3e3 1 #ifndef RPCTYPE_H
feb11 0:9e4bcb10b3e3 2 #define RPCTYPE_H
feb11 0:9e4bcb10b3e3 3
feb11 0:9e4bcb10b3e3 4 #include <list>
feb11 0:9e4bcb10b3e3 5
feb11 0:9e4bcb10b3e3 6 class RPCType
feb11 0:9e4bcb10b3e3 7 {
feb11 0:9e4bcb10b3e3 8 public :
feb11 0:9e4bcb10b3e3 9
feb11 0:9e4bcb10b3e3 10 static RPCType& instance();
feb11 0:9e4bcb10b3e3 11
feb11 0:9e4bcb10b3e3 12 void register_types();
feb11 0:9e4bcb10b3e3 13
feb11 0:9e4bcb10b3e3 14 bool is_supported_type(char *type);
feb11 0:9e4bcb10b3e3 15
feb11 0:9e4bcb10b3e3 16 private :
feb11 0:9e4bcb10b3e3 17
feb11 0:9e4bcb10b3e3 18 RPCType();
feb11 0:9e4bcb10b3e3 19 std::list<char*> supported_types;
feb11 0:9e4bcb10b3e3 20 };
feb11 0:9e4bcb10b3e3 21
feb11 0:9e4bcb10b3e3 22 #endif
feb11 0:9e4bcb10b3e3 23