sdk-ameba-v4.0c_180328/component/common/example/ota_http
2019-04-02 16:34:25 +08:00
..
example_ota_http.c first add sdk 2019-04-02 16:34:25 +08:00
example_ota_http.h first add sdk 2019-04-02 16:34:25 +08:00
readme.txt first add sdk 2019-04-02 16:34:25 +08:00

OTA HTTP UPDATING EXAMPLE

Description:
Download ota.bin from http download server(in tools\DownloadServer(HTTP))

Configuration:
[example_ota_http.c]
	Modify PORT, HOST and RESOURCE based on your HTTP download server.
	eg: SERVER: http://m-apps.oss-cn-shenzhen.aliyuncs.com/051103061600.bin
	set:	#define PORT	80
		#define HOST	"m-apps.oss-cn-shenzhen.aliyuncs.com"
		#define RESOURCE "051103061600.bin"

[platform_opts.h]
	#define CONFIG_EXAMPLE_OTA_HTTP    1
[ota_8195a.h for Ameba1, rtl8710b_ota.h for AmebaZ]
	#define HTTP_OTA_UPDATE	

Execution:
Can make automatical Wi-Fi connection when booting by using wlan fast connect example.
A http download example thread will be started automatically when booting.
Using the example with the tool in tools\DownloadServer(HTTP)