use TCP to connect to mbed connector
Fork of mbedConnectorInterfaceWithDM by
Diff: mbed-connector-interface/DeviceManagementResponder.h
- Revision:
- 14:d9ce4e56684e
- Parent:
- 13:9edad7677211
- Child:
- 30:db367366b1f5
--- a/mbed-connector-interface/DeviceManagementResponder.h Wed Jun 08 22:32:08 2016 +0000 +++ b/mbed-connector-interface/DeviceManagementResponder.h Thu Jun 09 19:05:18 2016 +0000 @@ -83,6 +83,12 @@ virtual void setFOTAManifest(const char *fota_manifest); /** + Get our FOTA manifest + @return the FOTA manifest + */ + virtual char *getFOTAManifest(); + + /** ACTION: Deregister device @param challenge input the input authentication challenge */ @@ -107,28 +113,16 @@ virtual void invokeFOTA(const void *challenge); /** - Set the State Resource - @param state_resource input the state resource instance + Set the FirmwareComposite Resource + @param firmware_composite_resource input the Firmware composite resource instance */ - void setStateResource(const void *state_resource); + void setFirmwareCompositeResource(const void *firmware_composite_resource); /** - Set the Result Resource - @param result_resource input the result resource instance + Get the FirmwareComposite Resource + @return the Firmware composite resource or NULL */ - void setResultResource(const void *result_resource); - - /** - Get the State Resource - @return the state resource or NULL - */ - void *getStateResource(); - - /** - Get the Result Resource - @return the result resource or NULL - */ - void *getResultResource(); + void *getFirmwareCompositeResource(); private: Logger *m_logger; @@ -142,8 +136,7 @@ bool authenticate(const void *challenge); - void *m_state_resource; - void *m_result_resource; + void *m_firmware_composite_resource; }; #endif // __DEVICE_MANAGEMENT_RESPONDER_H__ \ No newline at end of file