mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-18 15:54:31 +01:00
some notes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)?;
|
||||
|
||||
Reference in New Issue
Block a user