Source: MicroPython umqtt 連線/斷線的的注意事項
MicroPython 提供有 umqtt 模組可以使用 MQTT 協定, 不過在 umqtt 裡面有再分為 simple 和 robust 模組, 這兩種模組功能基本相同, 但如果設計純訂閱端 (只收資料不送資料) 這樣的程式, 在使用上就必須多加留意。
Continue reading »Source: MicroPython umqtt 連線/斷線的的注意事項
MicroPython 提供有 umqtt 模組可以使用 MQTT 協定, 不過在 umqtt 裡面有再分為 simple 和 robust 模組, 這兩種模組功能基本相同, 但如果設計純訂閱端 (只收資料不送資料) 這樣的程式, 在使用上就必須多加留意。
Continue reading »Source: ESP8266 softAP + station channel configuration
雖然 ESP8266 支持 softAP + station 共存模式,但它實際上只有一個硬件信道。
因此在 softAP + station 模式時, ESP8266 softAP 動態調整它的信道值與 ESP8266 station 一致。
Source: [Arduino] millis() 使用注意事項
最近在在Arduino上每隔五分鐘要用MQTT傳一次資料給SERVER,所以
用millis() 這個函式來取得arduino執行程式到目前過了幾個milliseconds
但這個值是用unsign long (32bit) 儲存的,所以大概在約50天左右就會overflow,
Source: Arduino – 中斷(Interrupt)
中斷(Interrupt)其實是Arduino中,一個很好用的功能。只是當時剛入門,對它很不了解,不知道該如何使用它。接下來我會用一個故事來解釋如何使用中斷這個功能。
Source: 探討:Button Debouncing (軟體作法)
接觸彈跳 (contact bounce) 的問題怎麼解決呢?其實有軟體的做法和硬體的作法,首先來看軟體的作法。
Source: Is using malloc() and free() a really bad idea on Arduino?
The use of malloc() and free() seems pretty rare in the Arduino world. It is used in pure AVR C much more often, but still with caution.
Is it a really bad idea to use malloc() and free() with Arduino?
Source: 葉難: Arduino與AVR微控制器相關詞彙
簡單介紹解釋一些名詞,這篇只是把找到的資料整理之後扼要記錄,主要是寫給我自己看的。若有錯誤,還請告知。