Skip to content

Commit 2cee18a

Browse files
committed
Merge branch 'main' into pb-error-msgs
2 parents ac31ff9 + 7121b05 commit 2cee18a

14 files changed

+822
-575
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags)
176176
- uses: actions/checkout@v4
177177
with:
178-
repository: brentru/ci-arduino
178+
repository: adafruit/ci-arduino
179179
path: ci
180180
- name: Install CI-Arduino
181181
run: bash ci/actions_install.sh

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name=Adafruit WipperSnapper
2-
version=1.0.0-beta.85
2+
version=1.0.0-beta.87
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino application for Adafruit.io WipperSnapper
66
paragraph=Arduino application for Adafruit.io WipperSnapper
77
category=Communication
88
url=https://github.com/adafruit/Adafruit_Wippersnapper_Arduino
99
architectures=*
10-
depends=Adafruit NeoPixel, Adafruit SPIFlash, ArduinoJson, Adafruit DotStar, Adafruit INA219, Adafruit LTR329 and LTR303, Adafruit LTR390 Library, Adafruit MCP3421, Adafruit NAU7802 Library, Adafruit SleepyDog Library, Adafruit TMP117, Adafruit TinyUSB Library, Adafruit AHTX0, Adafruit BME280 Library, Adafruit BMP280 Library, Adafruit BMP3XX Library, Adafruit DPS310, Adafruit SCD30, Adafruit SGP30 Sensor, Adafruit SGP40 Sensor, Sensirion I2C SCD4x, Sensirion I2C SEN5X, arduino-sht, Adafruit Si7021 Library, Adafruit MQTT Library, Adafruit MS8607, Adafruit MCP9808 Library, Adafruit MCP9600 Library, Adafruit MPL115A2, Adafruit MPRLS Library, Adafruit TSL2591 Library, Adafruit_VL53L0X, Adafruit VL53L1X, STM32duino VL53L4CD, STM32duino VL53L4CX, Adafruit_VL6180X, Adafruit PM25 AQI Sensor, Adafruit VCNL4020 Library, Adafruit VCNL4040, Adafruit VEML7700 Library, Adafruit LC709203F, Adafruit LPS2X, Adafruit LPS35HW, Adafruit seesaw Library, Adafruit BME680 Library, Adafruit MAX1704X, Adafruit ADT7410 Library, Adafruit HTS221, Adafruit HTU21DF Library, Adafruit HTU31D Library, Adafruit PCT2075, hp_BH1750, ENS160 - Adafruit Fork
10+
depends=Adafruit NeoPixel, Adafruit SPIFlash, ArduinoJson, Adafruit DotStar, Adafruit INA219, Adafruit LTR329 and LTR303, Adafruit LTR390 Library, Adafruit MCP3421, Adafruit NAU7802 Library, Adafruit SleepyDog Library, Adafruit TMP117, Adafruit TinyUSB Library, Adafruit AHTX0, Adafruit BME280 Library, Adafruit BMP280 Library, Adafruit BMP3XX Library, Adafruit DPS310, Adafruit DS248x, Adafruit SCD30, Adafruit SGP30 Sensor, Adafruit SGP40 Sensor, Sensirion I2C SCD4x, Sensirion I2C SEN5X, arduino-sht, Adafruit Si7021 Library, Adafruit MQTT Library, Adafruit MS8607, Adafruit MCP9808 Library, Adafruit MCP9600 Library, Adafruit MPL115A2, Adafruit MPRLS Library, Adafruit TSL2591 Library, Adafruit_VL53L0X, Adafruit VL53L1X, STM32duino VL53L4CD, STM32duino VL53L4CX, Adafruit_VL6180X, Adafruit PM25 AQI Sensor, Adafruit VCNL4020 Library, Adafruit VCNL4040, Adafruit VEML7700 Library, Adafruit LC709203F, Adafruit LPS2X, Adafruit LPS35HW, Adafruit seesaw Library, Adafruit BME680 Library, Adafruit MAX1704X, Adafruit ADT7410 Library, Adafruit HTS221, Adafruit HTU21DF Library, Adafruit HTU31D Library, Adafruit PCT2075, hp_BH1750, ENS160 - Adafruit Fork

platformio.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ lib_deps =
2828
adafruit/Adafruit BMP280 Library
2929
adafruit/Adafruit BMP3XX Library
3030
adafruit/Adafruit DPS310
31+
adafruit/Adafruit DS248x
3132
adafruit/Adafruit INA219
3233
adafruit/Adafruit HTS221
3334
adafruit/Adafruit HTU21DF Library
@@ -80,10 +81,7 @@ lib_deps =
8081

8182
; Common build environment for ESP32 platform
8283
[common:esp32]
83-
platform = https://github.com/platformio/platform-espressif32.git#develop
84-
platform_packages =
85-
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.2
86-
platformio/framework-arduinoespressif32-libs @ https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1
84+
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
8785
lib_ignore = WiFiNINA
8886
monitor_filters = esp32_exception_decoder, time
8987

src/Wippersnapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,7 @@ void Wippersnapper::haltError(String error, ws_led_status_t ledStatusColor) {
25102510
#else
25112511
// Calls to delay() and yield() feed the ESP8266's
25122512
// hardware and software watchdog timers, delayMicroseconds does not.
2513-
delayMicroseconds(1000);
2513+
delayMicroseconds(1000000);
25142514
#endif
25152515
}
25162516
}

src/Wippersnapper.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
#endif
142142

143143
#define WS_VERSION \
144-
"1.0.0-beta.85" ///< WipperSnapper app. version (semver-formatted)
144+
"1.0.0-beta.87" ///< WipperSnapper app. version (semver-formatted)
145145

146146
// Reserved Adafruit IO MQTT topics
147147
#define TOPIC_IO_THROTTLE "/throttle" ///< Adafruit IO Throttle MQTT Topic
@@ -213,7 +213,8 @@ typedef enum {
213213
FSM_NET_ESTABLISH_MQTT,
214214
} fsm_net_t;
215215

216-
#define WS_WDT_TIMEOUT 60000 ///< WDT timeout
216+
#define WS_WDT_TIMEOUT 60000 ///< WDT timeout
217+
#define WS_MAX_ALT_WIFI_NETWORKS 3 ///< Maximum number of alternative networks
217218
/* MQTT Configuration */
218219
#define WS_KEEPALIVE_INTERVAL_MS \
219220
5000 ///< Session keepalive interval time, in milliseconds
@@ -368,6 +369,8 @@ class Wippersnapper {
368369
Adafruit_MQTT *_mqtt; /*!< Reference to Adafruit_MQTT, _mqtt. */
369370

370371
secretsConfig _config; /*!< Wippersnapper secrets.json as a struct. */
372+
networkConfig _multiNetworks[3]; /*!< Wippersnapper networks as structs. */
373+
bool _isWiFiMulti = false; /*!< True if multiple networks are defined. */
371374

372375
// TODO: Does this need to be within this class?
373376
int32_t totalDigitalPins; /*!< Total number of digital-input capable pins */

0 commit comments

Comments
 (0)