Example program with HTTPServer and sensor data streaming over TCPSockets, using Donatien Garnier's Net APIs and services code on top of LWIP. Files StreamServer.h and .cpp encapsulate streaming over TCPSockets. Broadcast is done by sendToAll(), and all incoming data is echoed back to the client. Echo code can be replaced with some remote control of the streaming interface. See main() that shows how to periodically send some data to all subscribed clients. To subscribe, a client should open a socket at <mbed_ip> port 123. I used few lines in TCL code to set up a quick sink for the data. HTTP files are served on port 80 concurrently to the streaming.

Dependencies:   mbed

README.txt.h

Committer:
iva2k
Date:
2010-06-14
Revision:
1:3ee499525aa5

File content as of revision 1:3ee499525aa5:

README.txt.h

TODO LIST:

- HTTP Server performance is ~1-2kB/s. Need way better than this
- Port Ilya's link monitor from old HTTPServer
- Port Ilya's RPC improvements from old HTTPServer
- Port Ilya's NTP service from old HTTPServer
- Fix webfs root for files
- Need more DHCP options (work without link, call DHCP upon link)
- auto index.htm
- Fix headers on 404, RPC, other pages
- Date of files in Headers? Cache control headers
- StreamServer abstraction for request handler (mostly for API for custom protocol handlers)


INFO
- Based on Donatien Garnier's "Net" code v1.00 
  http://mbed.org/users/donatien/programs/NetServicesSource
- HTTPServer
- Ilya's StreamServer.h/.cpp provide simple TCP streaming service
- Misc Changes:
  - Compilation errors fixed
  - Debug messages cleaned up (no leading /r/n, better tie-in for LWIP messages)
  - 

##END