mqtt specific components for the impact mbed endpoint library
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
Diff: MBEDEndpoint.h
- Revision:
- 15:363a3299e41a
- Parent:
- 14:717372430717
- Child:
- 16:4cc5df8bf10c
--- a/MBEDEndpoint.h Mon Mar 31 18:47:19 2014 +0000 +++ b/MBEDEndpoint.h Mon Mar 31 18:54:27 2014 +0000 @@ -20,7 +20,9 @@ #define _MBED_ENDPOINT_H_ // Ethernet Interface -//DMA #include "EthernetInterface.h" +#ifndef CELLULAR_NETWORK + #include "EthernetInterface.h" +#endif // BaseClass support #include "BaseClass.h" @@ -46,7 +48,9 @@ class MBEDEndpoint : public BaseClass { private: - void *m_ethernet; // ethernet interface +#ifndef CELLULAR_NETWORK + EthernetInterface *m_ethernet; // ethernet interface +#endif Transport *m_transports[NUM_TRANSPORTS]; // our transport Personality *m_personalities[NUM_PERSONALITY_INSTANCES]; // our personality instances (at least 1) char m_endpoint_name[PERSONALITY_NAME_LEN+1]; // our endpoint name (personality[0]) @@ -98,8 +102,10 @@ bool closeTransport(int index,char *key); bool closeTransports(); - // bool initializeEthernet(EthernetInterface *ethernet); - // bool closeEthernet(); +#ifndef CELLULAR_NETWORK + bool initializeEthernet(EthernetInterface *ethernet); + bool closeEthernet(); +#endif }; #endif // _MBED_ENDPOINT_H_