STM32連接Python再連接網(wǎng)頁
安裝EMQX 并運行代碼 ./bin/emqx start
安裝python,pip安裝pyserial 和 serial.tools.list_ports
通過pyserial插件實現(xiàn)python和stm32的串口通信
????4.?pip安裝paho-mqtt 和 json 模塊
實現(xiàn)python通過emqx的mqtt服務(wù)器與前端通信,同時引入串口文件同步處理串口和前端的數(shù)據(jù)
5.前端引入mqtt.min.js 和 jquery.min.js?
6. html實現(xiàn)mqtt通信
7. 美化css
標簽: