ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers baidu_iot_ota_coap_downloader.h Source File

baidu_iot_ota_coap_downloader.h

00001 #pragma once
00002 #include "baidu_iot_ota_downloader.h"
00003 #include "url.h"
00004 #include "coap_client.h"
00005 
00006 class OTACoapDownloader: public IOTADownloader
00007 {
00008 public:
00009     OTACoapDownloader(URL *url, const char* cert=0);
00010     virtual ~OTACoapDownloader();
00011     virtual int connect();
00012     virtual unsigned int get(data_available_cb cb, void* ctx);
00013     virtual int disconnect();
00014 private:
00015     URL *m_pUrl;
00016     CoapsClient* m_pCoapsClient;
00017 };