From dcf64dfacd049c1d328cf11430e884e7eafaa161 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 3 Apr 2021 14:54:10 +0800 Subject: [PATCH] MQTT at least talks to server, works in native and esp32 --- .idea/workspace.xml | 23 ++++++++- bin/mqtt-listen.sh | 1 + bin/mqtt-send-status.sh | 1 + docs/software/TODO.md | 13 ++++- docs/software/mqtt.md | 35 ++++++++++--- platformio.ini | 7 +-- proto | 2 +- src/main.cpp | 7 ++- src/mesh/generated/admin.pb.h | 2 +- src/mesh/generated/apponly.pb.c | 3 -- src/mesh/generated/apponly.pb.h | 24 --------- src/mesh/generated/mqtt.pb.c | 12 +++++ src/mesh/generated/mqtt.pb.h | 55 +++++++++++++++++++++ src/mesh/generated/radioconfig.pb.h | 14 ++++-- src/mqtt/MQTT.cpp | 76 +++++++++++++++++++++++++++++ src/mqtt/MQTT.h | 38 +++++++++++++++ 16 files changed, 267 insertions(+), 46 deletions(-) create mode 100755 bin/mqtt-listen.sh create mode 100755 bin/mqtt-send-status.sh create mode 100644 src/mesh/generated/mqtt.pb.c create mode 100644 src/mesh/generated/mqtt.pb.h create mode 100644 src/mqtt/MQTT.cpp create mode 100644 src/mqtt/MQTT.h diff --git a/.idea/workspace.xml b/.idea/workspace.xml index aafe780b..bc0045f1 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -15,7 +15,15 @@ + + + + + + + + + + + + @@ -60,9 +73,9 @@ - + - @@ -98,6 +111,7 @@ + @@ -129,6 +143,11 @@ 37