File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,11 +79,6 @@ void AccessPoint::run()
7979 }
8080}
8181
82- bool AccessPoint::canHandle (HTTPMethod, const String&)
83- {
84- return true ;
85- }
86-
8782void AccessPoint::taskOnCredentialsReceived (void *param)
8883{
8984 auto ap = reinterpret_cast <AccessPoint *>(param);
@@ -123,6 +118,11 @@ static String waitingHtml()
123118 return html;
124119}
125120
121+ bool AccessPoint::canHandle (WebServer&, HTTPMethod, const String&)
122+ {
123+ return true ;
124+ }
125+
126126bool AccessPoint::handle (WebServer& server, HTTPMethod method, const String& uri)
127127{
128128 if (method == HTTP_POST ) {
Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ class AccessPoint : public RequestHandler
6363 */
6464 void run ();
6565
66+ /* * Determines which HTTP requests should be handled. */
67+ virtual bool canHandle (WebServer&, HTTPMethod, const String&) override ;
68+ /* * Handles requests by redirecting to the setup page. */
69+ virtual bool handle (WebServer&, HTTPMethod, const String&) override ;
70+
6671private:
6772
6873 unsigned long timeout;
@@ -86,11 +91,6 @@ class AccessPoint : public RequestHandler
8691 /* * Provides HTML for an error page with the given message. */
8792 static String htmlFromMsg (const char *msg, const char *extra = nullptr );
8893
89- /* * Determines which HTTP requests should be handled. */
90- virtual bool canHandle (HTTPMethod, const String&) override ;
91- /* * Handles requests by redirecting to the setup page. */
92- virtual bool handle (WebServer&, HTTPMethod, const String&) override ;
93-
9494 static void taskOnCredentialsReceived (void *param);
9595};
9696
Original file line number Diff line number Diff line change 2828#if defined(BOARD_ESP32_PCB )
2929
3030/** Pin number for the board's LED. */
31- #define PIN_LED1 GPIO_NUM_0
31+ #define PIN_LED1 GPIO_NUM_17
3232/** Pin number for the board's factory reset button. */
33- #define PIN_BUTTON GPIO_NUM_1
33+ #define PIN_BUTTON GPIO_NUM_15
3434/** Pin number for the microphone's clock pin. */
35- #define I2S_SCK GPIO_NUM_4
35+ #define I2S_SCK GPIO_NUM_5
3636/** Pin number for the microphone's data out pin. */
37- #define I2S_SD GPIO_NUM_5
37+ #define I2S_SD GPIO_NUM_6
3838
3939/** I2S peripheral instance to be used. */
4040#define I2S_PORT I2S_NUM_0
4343#define I2S_FORMAT I2S_CHANNEL_FMT_ONLY_LEFT
4444
4545/** Serial instance to use for logging output. */
46- #define SERIAL Serial
46+ #define SERIAL USBSerial
4747
4848#include <HWCDC.h>
4949extern HWCDC USBSerial ;
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ void measurementHandler(void *)
245245
246246 while (1 ) {
247247 if (const auto db = SPL .readMicrophoneData (); db) {
248- // packets.front().add(*db);
248+ packets.front ().add (*db);
249249 printReadingToConsole (*db);
250250 }
251251 }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ default_envs = esp32-pcb
1616[env]
1717extra_scripts = build_hooks.py
1818framework = arduino
19- platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.32 /platform-espressif32.zip
19+ platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.35 /platform-espressif32.zip
2020board_build.partitions = nmpartitions.csv
2121lib_deps =
2222 bblanchon/ArduinoJson@^7.0.2
@@ -26,9 +26,8 @@ build_unflags =
2626build_flags =
2727 -std =gnu++17
2828 -DNO_GLOBAL_EEPROM
29- -DNOISEMETER_VERSION =\" 0.3 .0\"
29+ -DNOISEMETER_VERSION =\" 0.4 .0\"
3030 -Wall -Wextra
31- -DUPLOAD_DISABLED
3231
3332# Optional build flags:
3433# Print credentials over serial (for debugging):
@@ -40,7 +39,7 @@ build_flags =
4039
4140[env:esp32-pcb]
4241extra_scripts = build_hooks.py
43- board = seeed_xiao_esp32s3
42+ board = esp32-s3-devkitm-1
4443board_build.f_cpu = 80000000L
4544build_flags = ${env.build_flags} -DBOARD_ESP32_PCB
4645
You can’t perform that action at this time.
0 commit comments