mqtt specific components for the impact mbed endpoint library
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
Revision 50:38cd1b5f1cde, committed 2014-07-25
- Comitter:
- ansond
- Date:
- Fri Jul 25 21:21:40 2014 +0000
- Parent:
- 48:7192a7a4edcd
- Child:
- 51:15c81f725ba2
- Commit message:
- added IOC record update whenever a resource is modified... necessary to keep the IOC in check with the latest values of the device.
Changed in this revision
EmulatedResourceFactory.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EmulatedResourceFactory.cpp Tue Jul 01 22:01:09 2014 +0000 +++ b/EmulatedResourceFactory.cpp Fri Jul 25 21:21:40 2014 +0000 @@ -56,6 +56,10 @@ this->logger()->log("Invoking Action..."); cb(); } + + // additionally update the IOC with a REST call to update its record of us (assuming 1 personality/endpoint!!) + MBEDEndpoint *endpoint = (MBEDEndpoint *)this->getEndpoint(); + endpoint->updatePersonality(0); } return success; } \ No newline at end of file