move the wifi details into files
This commit is contained in:
parent
c49b0a0bd1
commit
85624f880e
3 changed files with 6 additions and 3 deletions
|
|
@ -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
1
src/secrets/wifi-network
Normal file
|
|
@ -0,0 +1 @@
|
|||
someessid
|
||||
1
src/secrets/wifi-password
Normal file
1
src/secrets/wifi-password
Normal file
|
|
@ -0,0 +1 @@
|
|||
somewifipassword
|
||||
Loading…
Add table
Add a link
Reference in a new issue