Skip to content

Commit

Permalink
Merge pull request #87 from WildernessLabs/jorge-enable-reconnect
Browse files Browse the repository at this point in the history
Enable auto-reconnect on demo app
  • Loading branch information
adrianstevens authored Jul 4, 2024
2 parents d2e629d + c0b351e commit d364b7b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
6 changes: 5 additions & 1 deletion Source/Clima_Demo/app.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ Lifecycle:
# # When app set to restart automatically on app failure,
# AppFailureRestartDelaySeconds: 15

# # Adjust the level of logging detail.
# Logging configuration.
Logging:

# Adjust the level of logging detail.
LogLevel:

# Trace, Debug, Information, Warning, or Error
Default: Trace

MeadowCloud:
Expand Down
41 changes: 36 additions & 5 deletions Source/Clima_Demo/meadow.config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,49 @@
Device:
# Acceptable values for true: true, 1, yes
# Acceptable values for false: false, 0, no

# Main Device Config
Device:

# Name of the device on the network.
Name: Clima

# Uncomment if SD card hardware present on this hardware
# (e.g., Core-Compute module with SD add-on)? Optional; default value is `false`.
# SdStorageSupported: true

# Control how the ESP coprocessor will start and operate.
Coprocessor:
AutomaticallyStartNetwork: false
AutomaticallyReconnect: false
MaximumRetryCount: 0

# Should the ESP32 automatically attempt to connect to an access point at startup?
# If set to true, wifi.yaml credentials must be stored in the device.
AutomaticallyStartNetwork: true

# Should the ESP32 automatically reconnect to the configured access point?
AutomaticallyReconnect: true

# Maximum number of retry attempts for connections etc. before an error code is returned.
MaximumRetryCount: 99

# Network configuration.
Network:

# Default Interface
DefaultInterface: WiFi

# Automatically attempt to get the time at startup?
GetNetworkTimeAtStartup: true
NtpRefreshPeriodSeconds: 600

# Time synchronization period in seconds.
NtpRefreshPeriod: 600

# Name of the NTP servers.
NtpServers:
- 0.pool.ntp.org
- 1.pool.ntp.org
- 2.pool.ntp.org
- 3.pool.ntp.org

# IP addresses of the DNS servers.
DnsServers:
- 1.1.1.1
- 8.8.8.8
4 changes: 2 additions & 2 deletions Source/Clima_Demo/wifi.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

# # To enable automatically connecting to a default network, make sure to enable the Coprocessor > AutomaticallyStartNetwork value in meadow.config.yaml.
Credentials:
Ssid: interwebs
Password: 1234567890
Ssid: SSID
Password: PASSWORD

0 comments on commit d364b7b

Please sign in to comment.