summaryrefslogtreecommitdiffstats
path: root/src/network_data.example.rs
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-05-18 12:53:30 +0200
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-05-18 12:53:30 +0200
commit6f23f9fb8cabc53378e512743d11dfca321cf2b5 (patch)
treecee18c752cfd6ab7d7a7f88906eb3dc72df49f0e /src/network_data.example.rs
parent409dd8b121027c59ed69656172c754700fcfb0df (diff)
downloaddumbswitch-6f23f9fb8cabc53378e512743d11dfca321cf2b5.tar.gz
dumbswitch-6f23f9fb8cabc53378e512743d11dfca321cf2b5.tar.bz2
dumbswitch-6f23f9fb8cabc53378e512743d11dfca321cf2b5.tar.lz
dumbswitch-6f23f9fb8cabc53378e512743d11dfca321cf2b5.zip

feat: final changes

Diffstat (limited to 'src/network_data.example.rs')
-rw-r--r--src/network_data.example.rs31
1 files changed, 27 insertions, 4 deletions
diff --git a/src/network_data.example.rs b/src/network_data.example.rs
index 13cd6d5..0ce59d2 100644
--- a/src/network_data.example.rs
+++ b/src/network_data.example.rs
@@ -1,4 +1,27 @@
-pub const SSID: &str = "Chaostreff Bern";
-pub const PASSWORD: &str = "nyaa :3";
-pub const STATIC_IP: &str = "10.0.0.77";
-pub const GATEWAY_IP: &str = "10.0.0.1";
+//
+// Space API HTTP Button ("dumbswitch") Network Data (example file)
+// Copyright (C) 2025 memdmp
+//
+// This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
+//
+
+use crate::network_type::Network;
+
+pub const NETWORKS: [Network; 2] = vec![
+ Network {
+ ssid: "Chaostreff Bern",
+ password: "nyaa :3",
+ static_ip: "10.0.0.77",
+ gateway_ip: "10.0.0.1",
+ },
+ Network {
+ ssid: "Bitwäscherei-Kabale",
+ password: "uwu x3 nuzzle",
+ static_ip: "10.0.0.77",
+ gateway_ip: "10.0.0.1",
+ },
+];