use TCP to connect to mbed connector

Fork of mbedConnectorInterfaceWithDM by Doug Anson

Revision:
30:db367366b1f5
Parent:
14:d9ce4e56684e
Child:
48:c02f2665cf76
--- a/mbed-connector-interface/DeviceManagementResponder.h	Tue Jun 14 05:54:20 2016 +0000
+++ b/mbed-connector-interface/DeviceManagementResponder.h	Tue Jun 14 18:40:15 2016 +0000
@@ -76,17 +76,6 @@
         */
         void setFOTAInvocationHandler(responder_fn fota_invocation_fn);
         
-        /**
-        Set our FOTA manifest
-        @param fota_manifest input the input FOTA manifest
-        */
-        virtual void setFOTAManifest(const char *fota_manifest);
-        
-        /**
-        Get our FOTA manifest
-        @return the FOTA manifest
-        */
-        virtual char *getFOTAManifest();
         
         /**
         ACTION: Deregister device
@@ -107,36 +96,55 @@
         virtual void resetDevice(const void *challenge);
         
         /**
+        Set our FOTA manifest
+        @param manifest input the FOTA manifest
+        */
+        virtual void setFOTAManifest(char *manifest);
+        
+        /**
+        Get our FOTA manifest
+        @return the FOTA manifest
+        */
+        virtual char *getFOTAManifest();
+        
+        /**
+        Set our FOTA image
+        @param fota_image input the FOTA image
+        @param fota_image_length input the length of the fota image
+        */
+        virtual void setFOTAImage(void *fota_image,uint32_t fota_image_length );
+        
+        /**
+        Get our FOTA image
+        @return the FOTA image
+        */
+        virtual void *getFOTAImage();
+        
+        /**
+        Get our FOTA image length
+        @return the FOTA image length
+        */
+        virtual uint32_t getFOTAImageLength();
+        
+        /**
         ACTION: Invoke FOTA (default: empty action)
         @param challenge input the input authentication challenge
         */
         virtual void invokeFOTA(const void *challenge);
-        
-        /**
-        Set the FirmwareComposite Resource
-        @param firmware_composite_resource input the Firmware composite resource instance
-        */
-        void setFirmwareCompositeResource(const void *firmware_composite_resource);
-        
-        /**
-        Get the FirmwareComposite Resource
-        @return the Firmware composite resource or NULL
-        */
-        void *getFirmwareCompositeResource();
     
     private:
         Logger                      *m_logger;
         Authenticator               *m_authenticator;
         void                        *m_endpoint;
-        char                        *m_fota_manifest;
+        char                        *m_manifest;
+        void                        *m_fota_image;
+        uint32_t                     m_fota_image_length;
         
         responder_fn                 m_reboot_responder_fn;
         responder_fn                 m_reset_responder_fn;
         responder_fn                 m_fota_invocation_fn;
         
         bool                         authenticate(const void *challenge);
-        
-        void                        *m_firmware_composite_resource;
 };
 
 #endif // __DEVICE_MANAGEMENT_RESPONDER_H__
\ No newline at end of file