Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-mbed5-blinky by
DuerOS-Light-SDK-v1.1.0/duer-os-light/src/iot-baidu-ota/baidu_iot_ota_downloader.h@47:9e361da97763, 2017-07-18 (annotated)
- Committer:
- TMBOY
- Date:
- Tue Jul 18 16:54:45 2017 +0800
- Revision:
- 47:9e361da97763
?
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| TMBOY | 47:9e361da97763 | 1 | #pragma once |
| TMBOY | 47:9e361da97763 | 2 | /** |
| TMBOY | 47:9e361da97763 | 3 | * File: baidu_iot_ota_downloader.h |
| TMBOY | 47:9e361da97763 | 4 | * Auth: Duan Lian(duanlian01@baidu.com) |
| TMBOY | 47:9e361da97763 | 5 | * Date: 2016.12.21 |
| TMBOY | 47:9e361da97763 | 6 | * Desc: The OTA downloader interface |
| TMBOY | 47:9e361da97763 | 7 | */ |
| TMBOY | 47:9e361da97763 | 8 | typedef int (*data_available_cb)(unsigned char* data, unsigned int len, void* ctx); |
| TMBOY | 47:9e361da97763 | 9 | class IOTADownloader |
| TMBOY | 47:9e361da97763 | 10 | { |
| TMBOY | 47:9e361da97763 | 11 | public: |
| TMBOY | 47:9e361da97763 | 12 | virtual ~IOTADownloader(){}; |
| TMBOY | 47:9e361da97763 | 13 | virtual int connect()=0; |
| TMBOY | 47:9e361da97763 | 14 | virtual unsigned int get(data_available_cb cb, void* ctx)=0; |
| TMBOY | 47:9e361da97763 | 15 | virtual int disconnect()=0; |
| TMBOY | 47:9e361da97763 | 16 | }; |
