NNN40 run a HTTP server with RPC using Soft AP mode
Dependencies: WIFI_API_32kRAM mbed
Fork of HTTP-Server by
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
Then, led can be switch on using RPC command
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
Files at revision 11:f57e9de44f6f
Name | Size | Actions |
---|---|---|
[up] | ||
Formatter.cpp | 4819 | Revisions Annotate |
Formatter.h | 775 | Revisions Annotate |
HTTPServer.cpp | 2861 | Revisions Annotate |
HTTPServer.h | 791 | Revisions Annotate |
RPCCommand.cpp | 2453 | Revisions Annotate |
RPCCommand.h | 595 | Revisions Annotate |
RPCObjectManager.cpp | 1410 | Revisions Annotate |
RPCObjectManager.h | 589 | Revisions Annotate |
RPCType.cpp | 1246 | Revisions Annotate |
RPCType.h | 341 | Revisions Annotate |
RequestHandler.cpp | 3296 | Revisions Annotate |
RequestHandler.h | 977 | Revisions Annotate |
WIFI_API_32kRAM.lib | 73 | Revisions Annotate |
main.cpp | 1542 | Revisions Annotate |
mbed-rpc.lib | 67 | Revisions Annotate |
mbed.bld | 65 | Revisions Annotate |