ARM mbed M2X API Client: The ARM mbed client library is used to send/receive data to/from AT&T's M2X service from mbed LPC1768 microcontrollers.
Dependents: m2x-demo-all M2X_MTS_ACCEL_DEMO M2X_MTS_Accel M2X_K64F_ACCEL ... more
Diff: M2XStreamClient.h
- Revision:
- 8:bd39886d72fb
- Parent:
- 6:e6d66d99dd6f
- Child:
- 9:48b088e317aa
--- a/M2XStreamClient.h Thu Nov 14 15:14:54 2013 +0000 +++ b/M2XStreamClient.h Fri Jan 03 11:55:17 2014 +0000 @@ -7,10 +7,14 @@ #ifdef ARDUINO_PLATFORM #include "Arduino.h" + +#define USER_AGENT "User-Agent: M2X Arduino Client/0.1" #endif #ifdef MBED_PLATFORM #include "mbed.h" + +#define USER_AGENT "User-Agent: M2X Mbed Client/0.1" #endif #include "Client.h" @@ -64,6 +68,7 @@ M2XStreamClient(Client* client, const char* key, + int case_insensitive = 1, const char* host = kDefaultM2XHost, int port = kDefaultM2XPort); @@ -138,6 +143,7 @@ private: Client* _client; const char* _key; + int _case_insensitive; const char* _host; int _port; NullPrint _null_print;