Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of M2XStreamClient by
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;
