• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 #if !defined(MQTTETHERNET_H)
3 #define MQTTETHERNET_H
4 
5 #include "MQTTmbed.h"
6 #include "EthernetInterface.h"
7 #include "MQTTSocket.h"
8 
9 class MQTTEthernet : public MQTTSocket
10 {
11 public:
MQTTEthernet()12     MQTTEthernet() : MQTTSocket(&eth)
13     {
14         eth.connect();
15     }
16 
getEth()17     EthernetInterface& getEth()
18     {
19         return eth;
20     }
21 
22 private:
23 
24     EthernetInterface eth;
25 
26 };
27 
28 
29 #endif
30