From 3f46fa41b6ae0b7c1a2dd76a240cd5dd5e05c3b2 Mon Sep 17 00:00:00 2001 From: RoSchmi Date: Thu, 4 Nov 2021 18:47:35 +0100 Subject: [PATCH] Minor changes v1.0.2 --- include/config.h | 2 +- src/main.cpp | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/config.h b/include/config.h index e984043..ca8d93b 100644 --- a/include/config.h +++ b/include/config.h @@ -38,7 +38,7 @@ // regular expression "^[A-Za-z][A-Za-z0-9]{2,62}$". // max length in this App is 45 -#define ANALOG_TABLENAME "AnalogValuesXY" // Name of the Azure Table to store 4 analog Values max length = 45 +#define ANALOG_TABLENAME "AnalogValuesX" // Name of the Azure Table to store 4 analog Values max length = 45 #define ANALOG_TABLE_PART_PREFIX "Y2_" // Prefix for PartitionKey of Analog Tables (default, no need to change) diff --git a/src/main.cpp b/src/main.cpp index eda1b55..1548fa9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,11 +1,11 @@ -// Program 'Esp32_WiFiManager_HeatingSurvey +// Program 'Esp32_WiFiManager_HeatingSurvey' Version 1.0.2 // Copyright: RoSchmi 2021, License: Apache 2.0 // This App for Esp32 monitors the activity of the burner of an oil-heating // (or any other noisy thing) by measuring the sound of e.g. the heating burner // using an Adafruit I2S microphone // The on/off states are transferred to the Cloud (Azure Storage Tables) -// via WLAN and can be visulized graphically through the iPhone- or Android-App +// via WLAN and internet and can be visulized graphically through the iPhone- or Android-App // Charts4Azure. // The WiFi Credentials can be entered via a Portal page which is provided for one minute // by the Esp32 after powering up the device. After having entered the credentials @@ -26,7 +26,7 @@ #include "ESPAsyncWebServer.h" #include "defines.h" #include "config.h" -#include "config_secret.h" +//#include "config_secret.h" #include "DateTime.h" #include "FreeRTOS.h" @@ -69,6 +69,7 @@ // Now support ArduinoJson 6.0.0+ ( tested with v6.14.1 ) #include // get it from https://arduinojson.org/ or install via Arduino library manager + // Default Esp32 stack size of 8192 byte is not enough for this application. // --> configure stack size dynamically from code to 16384 // https://community.platformio.org/t/esp32-stack-configuration-reloaded/20994/4 @@ -215,6 +216,10 @@ static bool UseHttps_State = TRANSPORT_PROTOCOL == 0 ? false : true; // RoSchmi const char * CONFIG_FILE = "/ConfigSW.json"; +#define AZURE_CONFIG_ACCOUNT_NAME "AzureStorageAccName" + +#define AZURE_CONFIG_ACCOUNT_KEY "YourStorageAccountKey" + // Parameter for WiFi-Manager char azureAccountName[20] = AZURE_CONFIG_ACCOUNT_NAME; char azureAccountKey[90] = AZURE_CONFIG_ACCOUNT_KEY;