首先原理:
以MQTT协议+HTTP协议从阿里云获取固件升级
其次是资源:
Linkkit Core说明文档:https://www.yuque.com/aliyun_iot/product/c-sdk
Linkkit Core仓库地址:https://code.aliyun.com/linkkit/AiotCore-C-SDK.git
先把SDK下载下来
git clone https://code.aliyun.com/linkkit/AiotCore-C-SDK.git
下载后
tree
可见
├── demo
│ ├── bc35
│ │ ├── bc35_sys.c
│ │ ├── nwk_demo.c
│ │ ├── nwk_demo.h
│ │ └── README.md
│ └── linux
│ ├── bind_demo.c
│ ├── bind_reset_demo.c
│ ├── coap_client_demo.c
│ ├── coap_cloud_demo.c
│ ├── coap_server_demo.c
│ ├── dynreg_demo.c
│ ├── http_demo.c
│ ├── linux_sys.c
│ ├── linux_sys.h
│ ├── nwk_demo.c
│ ├── ota_demo.c
│ ├── preauth_demo.c
│ ├── pub_qos0_demo.c
│ ├── pub_qos1_demo.c
│ ├── security_nwk_demo.c
│ ├── sub_demo.c
│ ├── unsub_demo.c
│ ├── wifi_demo.c
│ ├── wifi_smartconfig_bind_demo.c
│ ├── wifi_softap_bind_demo.c
│ ├── wifi_softap_demo.c
│ ├── wifi_softap_dingtalk_demo.c
│ ├── wifi_softap_m2m_demo.c
│ └── wifi_softap_msgroute_demo.c
├── include
│ ├── aiot_bind_api.h
│ ├── aiot_coap_api.h
│ ├── aiot_coap_cloud_api.h
│ ├── aiot_errno.h
│ ├── aiot_log_api.h
│ ├── aiot_mqtt_api.h
│ ├── aiot_ota_api.h
│ ├── aiot_std.h
│ ├── aiot_sys_callback.h
│ └── aiot_wifi_api.h
├── lib
│ ├── aarch64-poky-linux-gcc-5.3.0
│ │ ├── libaiot_sdk.a
│ │ └── libaiot_sdk_wifi.a
│ ├── android
│ │ └── android-ndk-