Add "TARGET_RZ_A1H"as target of using Ethernet IF.
Fork of Milkcocoa_EthernetIF by
Diff: MClient.h
- Revision:
- 3:8dc743628d54
- Parent:
- 2:a174c8a8d53e
- Child:
- 5:8abe70267912
- Child:
- 6:7b9d1fed76fe
--- 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;