From 5f75b977352ed5bce1b8efb3f9469b2a4dd2bcaf Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Mon, 13 Jun 2022 14:37:17 -0700 Subject: [PATCH] add test-flash to gitignore --- .gitignore | 3 ++- README.md | 8 ++++++++ sphinx-key/src/core/events.rs | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 641f87d..ca2e8d2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ target Cargo.lock .DS_Store sphinx-key/Cargo.lock -notes.md \ No newline at end of file +notes.md +test-flash \ No newline at end of file diff --git a/README.md b/README.md index 084a1d0..82e37ac 100644 --- a/README.md +++ b/README.md @@ -81,3 +81,11 @@ restart sphinx key, then from computer connect to sphinxkey AP.\ go to `http://192.168.71.1/?broker=52.91.253.115%3A1883`.\ input internet wifi SSID and password, and the IP address of the broker.\ after pressing the ok button, restart the sphinx key, and wait for a MQTT connection. + +### espflash notes + +espflash save-image esp32-c3 target/riscv32imc-esp-espidf/debug/sphinx-key ./asdf-blah + +espflash save-image esp32-c3 target/riscv32imc-esp-espidf/release/sphinx-key ./test-flash + +espflash board-info \ No newline at end of file diff --git a/sphinx-key/src/core/events.rs b/sphinx-key/src/core/events.rs index e79e7f0..607e997 100644 --- a/sphinx-key/src/core/events.rs +++ b/sphinx-key/src/core/events.rs @@ -68,7 +68,7 @@ pub fn make_event_loop(mut mqtt: EspMqttClient> if do_log { log::info!("GOT A PING MESSAGE! returning pong now..."); } - mqtt.publish(RETURN_TOPIC, QOS, false, b).expect("could not publish init response"); + mqtt.publish(RETURN_TOPIC, QOS, false, b).expect("could not publish ping response"); }, Event::Disconnected => { log::info!("GOT A Event::Disconnected msg!");