代码拉取完成,页面将自动刷新
This example implement:
you could choose mosquitto or EMQTT as your MQTT broker
All you need to configurate are in mqtt_config.h, please according to the comment to modify:
if you configurate DEFAULT_SECURITY to ONE_WAY_ANTHENTICATION or TWO_WAY_ANTHENTICATION, please according to tools/README.txt to generate your certificate
$./gen_misc.sh
compile options: 1 1 2 0 5, or others if you are familar to it.
Any way is OK,such as:
$~/esp/esp-idf/components/esptool_py/esptool/esptool.py --port /dev/ttyUSB0 --baud 921600 write_flash 0x00000 ~/ESP8266_NONOS_SDK/bin/boot_v1.6.bin 0x1000 ../bin/upgrade/user1.2048.new.5.bin 0x1fe000 ~/ESP8266_NONOS_SDK/bin/blank.bin 0x1fc000 ~/ESP8266_NONOS_SDK/bin/esp_init_data_default.bin
Any way is OK, but your flashing address is same as the Step 2,such as:
$~/esp/esp-idf/components/esptool_py/esptool/esptool.py --port /dev/ttyUSB0 --baud 921600 write_flash 0x77000 ~/ESP8266_NONOS_SDK/tools/bin/esp_ca_cert.bin
$~/esp/esp-idf/components/esptool_py/esptool/esptool.py --port /dev/ttyUSB0 --baud 921600 write_flash 0x78000 ~/MQTTESP8266/tools/bin/esp_cert_private_key.bin
when the demo starts up:
/mqtt/topic/0
, /mqtt/topic/1
, /mqtt/topic/2
/mqtt/topic/0
, /mqtt/topic/1
, /mqtt/topic/2
why the demo connect the WiFi failed?
why the handshake failed?
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。