Skip to content

Commit

Permalink
Add OTA support; move MQTT to cert-based auth
Browse files Browse the repository at this point in the history
  • Loading branch information
hg committed Nov 16, 2020
1 parent cfb51ce commit a6b8710
Show file tree
Hide file tree
Showing 7 changed files with 167 additions and 152 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ca/

5 changes: 3 additions & 2 deletions firmware/main/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
idf_component_register(
SRCS "app_main.cc"
INCLUDE_DIRS "."
SRCS "app_main.cc"
INCLUDE_DIRS "."
EMBED_TXTFILES "ca.pem"
)

target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-missing-field-initializers)
Expand Down
14 changes: 6 additions & 8 deletions firmware/main/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ config MQTT_BROKER_URI
help
URI of MQTT broker to send measurement data to

config MQTT_HINT
string "MQTT hint"
default "airmon"
config MQTT_USERNAME
string "MQTT auth username"
default DEV_NAME

config MQTT_PSK
string "MQTT pre-shared key in HEX"
default "deadbeef"
help
Pre-shared key for TLS auth as a hex string
config MQTT_PASSWORD
string "MQTT auth password"
default "l33th4xx0r"
endmenu

Loading

0 comments on commit a6b8710

Please sign in to comment.