allow broker to wait 10 seconds for esp32

This commit is contained in:
Evan Feenstra
2022-06-16 14:26:19 -07:00
parent 60f55d7fa5
commit 10f8dd4893

View File

@@ -17,7 +17,7 @@ const PUB_TOPIC: &str = "sphinx";
const USERNAME: &str = "sphinx-key";
const PASSWORD: &str = "sphinx-key-pass";
// must get a reply within this time, or disconnects
const REPLY_TIMEOUT_MS: u64 = 1000;
const REPLY_TIMEOUT_MS: u64 = 10000;
static CONNECTED: SyncLazy<Mutex<bool>> = SyncLazy::new(|| Mutex::new(false));
fn set_connected(b: bool) {