Had to fork with a different name, because of some incompatibility issues.
Diff: DeviceClient.h
- Revision:
- 16:3f8558ebff65
- Parent:
- 10:665cfb0da4c5
- Child:
- 23:1523bdaba8c8
--- a/DeviceClient.h Fri Feb 22 18:40:58 2019 +0000 +++ b/DeviceClient.h Tue Sep 17 21:01:06 2019 +0000 @@ -51,7 +51,7 @@ char *authMethod; char *authToken; int port; - MQTTNetwork* mqttNetwork; + //MQTTNetwork* mqttNetwork; MQTT::Client<MQTTNetwork, Countdown> *mqttClient; bool tryConnect(char *hostname, MQTTPacket_connectData &data); @@ -62,6 +62,8 @@ DeviceClient(); public: + MQTTNetwork* mqttNetwork; + DeviceClient(char *org, char *deviceType, char *deviceId, int port = MQTT_PORT); DeviceClient(char *org, char *deviceType, char *deviceId, char *authMethod, char *authToken, int port = MQTT_PORT); bool publishEvent(char *eventName, char *data, MQTT::QoS qos = MQTT::QOS0);