Skip to content

Commit

Permalink
Minor changes v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RoSchmi committed Nov 4, 2021
1 parent c3fb86d commit 3f46fa4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
11 changes: 8 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"
Expand Down Expand Up @@ -69,6 +69,7 @@
// Now support ArduinoJson 6.0.0+ ( tested with v6.14.1 )
#include <ArduinoJson.h> // 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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3f46fa4

Please sign in to comment.