データの保存、更新、取得ができるWebサービス「milkcocoa」に接続し、データのプッシュ、送信、取得ができるライブラリです。EthernetIF版 https://mlkcca.com/
Dependents: MilkcocoaSample_Eth_tmp MilkcocoaSample_Eth uhuru_hallowin2
Fork of Milkcocoa by
Revision 3:8dc743628d54, committed 2015-12-27
- Comitter:
- jksoft
- Date:
- Sun Dec 27 13:36:50 2015 +0000
- Parent:
- 2:a174c8a8d53e
- Child:
- 4:00c0aa379263
- Commit message:
- u-blox C027?3G??????
Changed in this revision
| MClient.h | Show annotated file Show diff for this revision Revisions of this file |
| MQTT.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/MClient.h Fri Dec 18 04:38:59 2015 +0000
+++ b/MClient.h Sun Dec 27 13:36:50 2015 +0000
@@ -2,12 +2,15 @@
#define _MCLIENT_H_
//#define USE_ESP8266
-#define USE_ETHERNET
+//#define USE_ETHERNET
+#define USE_MDM
#include "mbed.h"
-#ifdef USE_ESP8266
+#if defined(USE_ESP8266)
#include "MQTTESP8266.h"
-#else
+#elif defined(USE_MDM)
+#include "MQTTMDM.h"
+#else
#include "MQTTEthernet.h"
#endif
#include "MQTTClient.h"
@@ -18,6 +21,8 @@
typedef void (*messageHandler)(MQTT::MessageData&);
#ifdef USE_ESP8266
MClient(MQTTESP8266 *ipstack) : client(MQTT::Client<MQTTESP8266, Countdown>(*ipstack))
+#elif defined(USE_MDM)
+ MClient(MQTTMDM *ipstack) : client(MQTT::Client<MQTTMDM, Countdown>(*ipstack))
#else
MClient(MQTTEthernet *ipstack) : client(MQTT::Client<MQTTEthernet, Countdown>(*ipstack))
#endif
@@ -76,6 +81,9 @@
#ifdef USE_ESP8266
MQTT::Client<MQTTESP8266, Countdown> client;
MQTTESP8266 *_ipstack;
+#elif defined(USE_MDM)
+ MQTT::Client<MQTTMDM, Countdown> client;
+ MQTTMDM *_ipstack;
#else
MQTT::Client<MQTTEthernet, Countdown> client;
MQTTEthernet *_ipstack;
--- a/MQTT.lib Fri Dec 18 04:38:59 2015 +0000 +++ b/MQTT.lib Sun Dec 27 13:36:50 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/teams/mqtt/code/MQTT/#e335fcc1a663 +http://developer.mbed.org/teams/mqtt/code/MQTT/#f9841b2adaa2
