データの保存、更新、取得ができるWebサービス「milkcocoa」に接続し、データのプッシュ、送信、取得ができるライブラリです。 https://mlkcca.com/
Fork of Milkcocoa by
Revision 3:de1a3d2c9b14, committed 2017-01-19
- Comitter:
- shosoai
- Date:
- Thu Jan 19 01:00:44 2017 +0000
- Parent:
- 2:9afb66979712
- Child:
- 4:cf5b2cd460fe
- Commit message:
- add BP3595
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 Mon Feb 29 09:18:16 2016 +0000
+++ b/MClient.h Thu Jan 19 01:00:44 2017 +0000
@@ -1,21 +1,27 @@
#ifndef _MCLIENT_H_
#define _MCLIENT_H_
+//#define TARGET_GRPEACH_B3595
+
#if defined(TARGET_UBLOX_C027)
-#define USE_MDM
+ #define USE_MDM
#elif defined(TARGET_LPC1768) || defined(TARGET_K64F) || defined(TARGET_W7500x)
-#define USE_ETHERNET
+ #define USE_ETHERNET
+#elif defined(TARGET_GRPEACH_B3595)
+ #define USE_BP3595
#else
-#define USE_ESP8266
+ #define USE_ESP8266
#endif
#include "mbed.h"
#if defined(USE_ESP8266)
-#include "MQTTESP8266.h"
+ #include "MQTTESP8266.h"
+#elif defined(USE_BP3595)
+ #include "MQTTBP3595.h"
#elif defined(USE_MDM)
-#include "MQTTMDM.h"
+ #include "MQTTMDM.h"
#else
-#include "MQTTEthernet.h"
+ #include "MQTTEthernet.h"
#endif
#include "MQTTClient.h"
@@ -25,6 +31,8 @@
typedef void (*messageHandler)(MQTT::MessageData&);
#ifdef USE_ESP8266
MClient(MQTTESP8266 *ipstack) : client(MQTT::Client<MQTTESP8266, Countdown>(*ipstack))
+#elif defined(USE_BP3595)
+ MClient(MQTTBP3595 *ipstack) : client(MQTT::Client<MQTTBP3595, Countdown>(*ipstack))
#elif defined(USE_MDM)
MClient(MQTTMDM *ipstack) : client(MQTT::Client<MQTTMDM, Countdown>(*ipstack))
#else
@@ -85,6 +93,9 @@
#ifdef USE_ESP8266
MQTT::Client<MQTTESP8266, Countdown> client;
MQTTESP8266 *_ipstack;
+#elif defined(USE_BP3595)
+ MQTT::Client<MQTTBP3595, Countdown> client;
+ MQTTBP3595 *_ipstack;
#elif defined(USE_MDM)
MQTT::Client<MQTTMDM, Countdown> client;
MQTTMDM *_ipstack;
--- a/MQTT.lib Mon Feb 29 09:18:16 2016 +0000 +++ b/MQTT.lib Thu Jan 19 01:00:44 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/jksoft/code/MQTT/#f9841b2adaa2 +https://developer.mbed.org/users/jksoft/code/MQTT/#aef707bd0f35
