Some quick code to use UDP-only (no TCP) with mBed. Echos received packets and sends packets when a button is pressed
HTTPStaticPage Class Reference
This class Provide a Handler to send Static HTTP Pages from the bin file. More...
#include <HTTPStaticPage.h>
Public Member Functions | |
HTTPStaticPage (const char *path, const char *page, int length=0) | |
Constructer takes the pagename and the pagedata. |
Detailed Description
This class Provide a Handler to send Static HTTP Pages from the bin file.
Definition at line 17 of file HTTPStaticPage.h.
Constructor & Destructor Documentation
HTTPStaticPage | ( | const char * | path, |
const char * | page, | ||
int | length = 0 |
||
) |
Constructer takes the pagename and the pagedata.
As long as the pagedata is NULL terminated you have not to tell the data length. But if you want to send binary data you should tell us the size.
Definition at line 24 of file HTTPStaticPage.h.
Generated on Tue Jul 12 2022 19:17:24 by 1.7.2