Skip to content

Commit b284782

Browse files
committed
Device seems to be weird about saving variables such as wifi credentials and printer settings. Seems to be technically working now though. Perhaps there's just a longer wait between saving to flash? Log show "preferences" being saved pretty timely though.
1 parent e17f472 commit b284782

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

firmware/conf.d/logger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
logger:
2-
level: INFO
2+
level: DEBUG
33
logs:
44
sensor: WARN
55
pn532: INFO
@@ -10,7 +10,7 @@ logger:
1010
mqtt: INFO
1111
mqtt.component: INFO
1212
mqtt.client: INFO
13-
wifi: VERBOSE
13+
wifi: DEBUG
1414
wifi_esp32: WARN
1515
esp-tls: WARN
1616
esp-tls-mbedtls: WARN

firmware/conf.d/wifi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
wifi:
3+
id: openspool_wifi
34
ap:
45
ssid: "OpenSpool"
56
password: "OpenSpool"

firmware/rpipicow.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ esphome:
66
platform_packages:
77
- framework-arduinopico @ https://github.com/earlephilhower/arduino-pico.git
88
board_build.filesystem_size: 0.5m
9-
9+
1010
rp2040:
1111
board: rpipicow
1212
framework:
@@ -39,6 +39,15 @@ rp2040_mqtt:
3939
mqtt_user: bblp
4040
mqtt_pass: ""
4141

42+
# I don't know why this part seems to be necessary for the device to retain the wifi credentials, but it does.
43+
globals:
44+
- id: global_wifi_ssid
45+
type: std::string
46+
restore_value: yes
47+
- id: global_wifi_password
48+
type: std::string
49+
restore_value: yes
50+
4251
mqtt: !remove
4352

4453
packages:

0 commit comments

Comments
 (0)