Simple code to upload temperature readings to SensorUp SensorThings Playground (http://pg.sensorup.com) from the XBee moudle. It works with mbed LPC1768. (https://developer.mbed.org/platforms/mbed-LPC1768/)
Dependencies: C12832 EthernetNetIf LM75B mbed
TinyHTTP.h File Reference
Tiny HTTP Client. More...
Go to the source code of this file.
Functions | |
int | httpRequest (int method, Host *host, char *uri, char *head, char *body) |
send http request |
Detailed Description
Tiny HTTP Client.
Definition in file TinyHTTP.h.
Function Documentation
int httpRequest | ( | int | method, |
Host * | host, | ||
char * | uri, | ||
char * | head, | ||
char * | body | ||
) |
send http request
- Parameters:
-
method METHOD_GET or METHOD_POST host http server uri URI head http header (CR+LF) (or NULL) body POST body (or NULL)
- Returns:
- http code, -1:failue
Definition at line 120 of file TinyHTTP.cpp.
Generated on Thu Jul 14 2022 11:27:49 by 1.7.2