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_http_downloader.h
00001 #pragma once 00002 #include "baidu_iot_ota_downloader.h" 00003 #include "url.h" 00004 #include "baidu_http_client.h" 00005 00006 class OTAHttpDownloader: public IOTADownloader 00007 { 00008 public: 00009 OTAHttpDownloader(URL *url); 00010 virtual ~OTAHttpDownloader(); 00011 virtual int connect(); 00012 virtual unsigned int get(data_available_cb cb, void* ctx); 00013 virtual int disconnect(); 00014 private: 00015 static int data_available(void *ctx, e_data_pos pos, const char *buf, size_t len, const char *type); 00016 duer::HttpClient *http_client; 00017 char *m_pUrl; 00018 };
Generated on Tue Jul 12 2022 16:28:52 by 1.7.2