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.cpp
- Revision:
- 38:bf10a01eb123
- Parent:
- 36:23a1b2dde4d9
- Child:
- 39:fec38d630383
--- a/MBEDEndpoint.cpp Sun Apr 13 16:56:28 2014 +0000 +++ b/MBEDEndpoint.cpp Sun Apr 13 17:27:23 2014 +0000 @@ -327,10 +327,7 @@ this->logger()->log("Building Payload for Personality(%s): %s...",instance->getType(),instance->getName()); // build the personality payload - char *data = NULL; -#ifdef LIGHT_PERSONALITY - data = ((IOCEndpoint *)this->getEndpoint())->buildLightPayload(payload,IOC_PAYLOAD_LEN,(Light *)instance); -#endif + char *data = ((IOCEndpoint *)this->getEndpoint())->buildLightPayload(payload,IOC_PAYLOAD_LEN,(Light *)instance); // issue the request if (data != NULL && strlen(data) > 0) { @@ -384,11 +381,7 @@ memset(payload,0,IOC_PAYLOAD_LEN+1); // build the payload - char *data = NULL; - -//#ifdef LIGHT_PERSONALITY - data = ((IOCEndpoint *)this->getEndpoint())->buildLightPayload(payload,IOC_PAYLOAD_LEN,(Light *)instance); -//#endif + char *data = ((IOCEndpoint *)this->getEndpoint())->buildLightPayload(payload,IOC_PAYLOAD_LEN,(Light *)instance); // issue the request if (data != NULL && strlen(data) > 0) {