esp8266 接入阿里生活
参考徐大佬
https://xuhong.blog.csdn.net/article/details/101448052
1.用 esp-aliyun 不用 aliyunliving。。。。
https://github.com/espressif/esp-aliyun
2.3.2的SDK
git clone -b v3.2 --recursive https://github.com/espressif/ESP8266_RTOS_SDK
3.5.2的工具链
4.设置sdk是esp8266平台
make chip=esp8266 defconfig
5.遇到编译错误 wrapper_ota.c 加上头文件: #include "stdlib.h"

6.make all完成
7.三元组
cd mass_mfg/
$IDF_PATH/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py --input single_mfg_config.csv --output my_single_mfg.bin --size 0x4000
make chip=esp8266 defconfig
8.数据接收
linkkit_solo.c 中
user_property_set_event_handler
request 就是json数据

数据发送:IOT_Linkkit_Report
丢json数据就行

检测状态:
app_main.c中 linkkit_event_monitor
还有 wifi_event_handle --连上路由器才 linkkit_main

设置四元组:

设置后,可以重新配网,这样清除配网信息

若windos环境出现这种情况。。。
阿里云的demo里面make clean不行
要在ubuntu下,rtossdk里面的example clean一下,随便一个demo也行,将tool里面的东西去掉,然后覆盖一下tool下面文件到windows的sdk下面就可可以了


浙公网安备 33010602011771号