Skip to content

common components for ESP32 based iot applications

License

Notifications You must be signed in to change notification settings

ves011/esp32_common

Repository files navigation

esp32_common

holds common components for esp32 applications The current CMakeList.txt places this folder at the same level with application folder
    --/application folder
        --/main
        --/...
    --/esp32_common
        --/cmds
        --/tcp
        --/utils
If you place it differently update CMakeList.txt

The picture below shows how framework is initialized with respect the common components. plot

esp32_common/cmds

implements system and wifi utility commands

Note about console command

console on | off | tcp

on --> display messages (printfs, ESP_LOGx) on the serial console
tcp --> redirects all messages to LOG_SERVER listening on LOG_PORT (tcp_log.h)

on the server machine just run ncat -l LOG_PORT -k

off --> mute all your messages, but IDF components using printf directly cannot be muted

esp32_common/comm

implements SPI wrapper required by communication with AD7811

esp32_common/AD7811

implements primitives to start conversion and read data for AD7811

esp32_common/tcp

implements mqtt client app site, NTP sync and log redirection over TCP

esp32_common/utils

implements ota utility, printf wrappers and a spiffs read/write function