bowen liu
/
mbed-os-example-blinky
ex
Fork of mbed-os-example-mbed5-blinky by
Embed:
(wiki syntax)
Show/hide line numbers
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 };
Generated on Tue Jul 12 2022 16:28:52 by 1.7.2