mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
NOTE:
This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!
Diff: source/ConnectorEndpoint.cpp
- Revision:
- 111:9407038559f7
- Parent:
- 110:0af085ececd2
- Child:
- 112:b7e348a3363c
--- a/source/ConnectorEndpoint.cpp Wed Apr 26 04:23:14 2017 +0000 +++ b/source/ConnectorEndpoint.cpp Wed Apr 26 04:32:30 2017 +0000 @@ -63,7 +63,7 @@ } // make sure we have an endpoint... - if (__endpoint != NULL) { + if (__endpoint != NULL && __endpoint->getEndpointInterface() != NULL) { // set the device manager if (device_manager != NULL) { // device manager has been supplied @@ -84,7 +84,7 @@ // STATIC: Finalize the endpoint's configuration and begin the endpoint's main even loop (static, not tied into Logger) void Endpoint::start() { - if (__endpoint != NULL) { + if (__endpoint != NULL && __endpoint->getEndpointInterface() != NULL) { // build out the endpoint with its configuration... printf("Connector::Endpoint::start: building out endpoint...\r\n"); utils_build_endpoint((void *)__endpoint);