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_downloader.h Source File

baidu_iot_ota_downloader.h

00001 #pragma once
00002 /**
00003  * File: baidu_iot_ota_downloader.h
00004  * Auth: Duan Lian(duanlian01@baidu.com)
00005  * Date: 2016.12.21
00006  * Desc: The OTA downloader interface
00007  */
00008 typedef int (*data_available_cb)(unsigned char* data, unsigned int len, void* ctx);
00009 class IOTADownloader
00010 {
00011 public:
00012       virtual ~IOTADownloader(){};
00013         virtual int connect()=0;
00014       virtual unsigned int get(data_available_cb cb, void* ctx)=0;
00015     virtual int disconnect()=0;
00016 };