move the wifi details into files

This commit is contained in:
Yvan 2025-03-17 17:25:40 +00:00
parent c49b0a0bd1
commit 85624f880e
3 changed files with 6 additions and 3 deletions

View file

@ -29,9 +29,10 @@ use rand::RngCore;
use static_cell::StaticCell;
use {defmt_rtt as _, panic_probe as _};
// oh no, exposing my IoT WiFi credentials to the world ;)
const WIFI_NETWORK: &str = "bendybogalow";
const WIFI_PASSWORD: &str = "parsnipcabbageonion";
// ensure the network/password files have no trailing newline
// i.e. generate like: echo -n "password" > src/secrets/wifi-password
const WIFI_NETWORK: &str = include_str!("secrets/wifi-network");
const WIFI_PASSWORD: &str = include_str!("secrets/wifi-password");
const INDEX: &str = include_str!("html/index.html");
const CSS: &str = include_str!("html/main.css");

1
src/secrets/wifi-network Normal file
View file

@ -0,0 +1 @@
someessid

View file

@ -0,0 +1 @@
somewifipassword