MQTT library (clone of https://os.mbed.com/teams/mqtt/code/MQTT/)

Dependencies:   FP MQTTPacket

Dependents:   NuMaker-mbed-AWS-IoT-example NuMaker-mbed-OS-6-AWS-IoT-example

Committer:
SHLIU1@OANBE02333.nuvoton.com
Date:
Wed Sep 07 13:40:01 2022 +0800
Revision:
65:1b626554f238
Parent:
54:ff9e5c4b52d0
delete the setting of "chrono::duration_castchrono::milliseconds"

Who changed what in which revision?

UserRevisionLine numberNew contents of line
icraggs 29:833386b16f3e 1
icraggs 29:833386b16f3e 2 #if !defined(MQTTETHERNET_H)
icraggs 29:833386b16f3e 3 #define MQTTETHERNET_H
icraggs 29:833386b16f3e 4
icraggs 43:21da1f744243 5 #include "MQTTmbed.h"
icraggs 29:833386b16f3e 6 #include "EthernetInterface.h"
icraggs 31:a51dd239b78e 7 #include "MQTTSocket.h"
icraggs 29:833386b16f3e 8
icraggs 31:a51dd239b78e 9 class MQTTEthernet : public MQTTSocket
icraggs 29:833386b16f3e 10 {
icraggs 29:833386b16f3e 11 public:
icraggs 54:ff9e5c4b52d0 12 MQTTEthernet() : MQTTSocket(&eth)
icraggs 29:833386b16f3e 13 {
icraggs 29:833386b16f3e 14 eth.connect();
icraggs 29:833386b16f3e 15 }
icraggs 29:833386b16f3e 16
icraggs 41:b7e86fa6dbb8 17 EthernetInterface& getEth()
icraggs 41:b7e86fa6dbb8 18 {
icraggs 41:b7e86fa6dbb8 19 return eth;
icraggs 41:b7e86fa6dbb8 20 }
icraggs 41:b7e86fa6dbb8 21
icraggs 29:833386b16f3e 22 private:
icraggs 29:833386b16f3e 23
icraggs 29:833386b16f3e 24 EthernetInterface eth;
icraggs 29:833386b16f3e 25
icraggs 29:833386b16f3e 26 };
icraggs 29:833386b16f3e 27
icraggs 29:833386b16f3e 28
icraggs 29:833386b16f3e 29 #endif