doc: add SSID and PASS env sets, update deploy.sh accordingly

This commit is contained in:
decentclock
2022-10-08 00:37:30 -04:00
parent cc7408dcf1
commit eb018e197e
2 changed files with 12 additions and 0 deletions

View File

@@ -22,6 +22,16 @@ then
echo "install with this command: cargo install cargo-espflash"
exit 1
fi
if [ -z "$SSID" ]
then
echo "Please set environment variable SSID to the SSID of the wifi you'll use to configure your sphinx-key."
exit 1
fi
if [ -z "$PASS" ]
then
echo "Please set environment variable PASS to the password of the wifi you'll use to configure your sphinx-key."
exit 1
fi
for FILE in /dev/tty.*
do
if check_port $FILE

View File

@@ -75,6 +75,8 @@ cargo generate --vcs none --git https://github.com/esp-rs/esp-idf-template cargo
- `cd ~`
- `git clone https://github.com/stakwork/sphinx-key.git`
- `cd sphinx-key`
- `export SSID=wifi_name_you'll_use_to_configure_sphinx_key}`
- `export PASS=password_of_wifi_you'll_use_to_configure_sphinx_key`
- `./deploy.sh`. This commands takes a while, it builds and flashes everything!
- You will eventually be shown the logs of the signer.
- Wait for the message `Waiting for data from the phone!`. The LED should blink green.