Translate

Sunday, December 20, 2020

IoT MQTT with Flash on NodeMCU and Respberry Pi

https://randomnerdtutorials.com/esp8266-publishing-dht22-readings-to-sqlite-database/

以上是很棒的連結,看完對於MQTT,SQLite,FLASK 和 NodeMCU /Raspberry Pi 的基本架構都會有基本的瞭解。

Raspberry Pi: 

  1. 安裝 Mosquitto 並且啟動,MQTT上線完成
  2. 安裝 FLASK
  3. 安裝 SQLite;
    1. 建立一個 sqlite.db file
    2. 在 db file 中建一個 table 完成
  4. Pythone file subscribe to EPS8266 來的MQTT資料,並寫入 SQLite
  5. 在網上即可看見NodeMCU發出來的資料

No comments:

Post a Comment