some notes

This commit is contained in:
Evan Feenstra
2022-09-20 09:45:56 -07:00
parent aeb48e36c3
commit 381b765f9a
2 changed files with 8 additions and 1 deletions

View File

@@ -4,8 +4,14 @@ navigate to top level (sphinx-key)
`docker build -f broker/Dockerfile -t sphinx-key-broker .`
### test test locally
### test locally
To run the broker test against the esp32-c3:
`cargo run -- --test`
### w docker
cid=$(docker create sphinx-key-broker)
docker cp $cid:/usr/src/sphinx-key-broker - > local-key-broker
docker rm -v $cid

View File

@@ -136,6 +136,7 @@ fn make_and_launch_client(
let ctrlr = controller_from_seed(&network, &seed[..], flash);
let pubkey = hex::encode(ctrlr.pubkey().serialize());
let token = ctrlr.make_auth_token().expect("couldnt make auth token");
log::info!("PUBKEY {} TOKEN {}", &pubkey, &token);
let (mqtt, connection) = conn::mqtt::make_client(&config.broker, CLIENT_ID, &pubkey, &token)?;
let mqtt_client = conn::mqtt::start_listening(mqtt, connection, tx)?;