Commit Graph

494 Commits

Author SHA1 Message Date
irriden
d8c6ac4bd7 bump sphinx-rs
this points to a pin of thiserror to 1.0.43, which results in a
downgrade here. 1.0.44 was eating up 10K bytes upfront of esp32 DRAM.
2023-07-29 05:36:30 +00:00
irriden
a99584cb3c bump sphinx-rs 2023-07-27 20:26:51 +00:00
Evan Feenstra
eed1aa72a5 drop newly attached signer from client list 2023-07-27 11:12:25 -07:00
irriden
41e74d30ef sphinx-key: timeout sntp setup and restart 2023-07-27 16:13:57 +00:00
irriden
864f58c53b sphinx-key: restart esp in case of wifi setup failure
this addresses intermittent errors, wifi info typos will be addressed later
2023-07-27 15:18:05 +00:00
irriden
d2510e3b9a Merge branch 'fixed-prefix' 2023-07-27 15:12:51 +00:00
Evan Feenstra
e722b2cdca little fixes 2023-07-26 22:30:58 -07:00
irriden
39e7c3dab8 broker, sphinx-key: remove variable session id 2023-07-26 23:07:51 +00:00
irriden
58f0f169dd bump sphinx-rs deps 2023-07-26 22:36:20 +00:00
irriden
b0788dc4ef sphinx-key: timeout lss init message reception
close #99
2023-07-26 21:38:38 +00:00
irriden
c86bafddd1 sphinx-key: allocate once when receiving message chunks 2023-07-26 16:52:18 +00:00
irriden
e408866e73 broker: client list is now a hashmap
the key is the fixed, per-signer id
the value is the session id, generated randomly for each connection
2023-07-26 02:13:44 +00:00
irriden
ea593cfea4 sphinx-key: add a fixed prefix to client id
this prefix is persisted to flash storage
2023-07-26 02:13:44 +00:00
irriden
7e290da6a6 sphinx-key: log message in case it's not lss 2023-07-25 19:40:59 +00:00
irriden
f9739b0533 broker: nit clarify comment and logging 2023-07-25 19:05:02 +00:00
irriden
44d849dccf broker: switch pub_timeout from 9 to 4 secs 2023-07-25 18:15:49 +00:00
irriden
bf0a0d6ae9 broker: no need to pass connected into the reconn channel 2023-07-25 18:15:49 +00:00
irriden
2cf6fd7c1f broker: add try counter to pub_and_wait
set to none to retry indefinitely until a response is received
closes #96
2023-07-25 18:15:19 +00:00
irriden
1491546f40 broker: add client id to client list only after it has completed the reconnect dance
closes #97
2023-07-25 18:14:54 +00:00
irriden
9d7e8b751f sphinx-key: track sequence numbers, bump sphinx-rs 2023-07-22 01:15:51 +00:00
irriden
d867a28c4f sphinx-key: add local crypter dep comment 2023-07-21 23:48:48 +00:00
irriden
4183b655bd broker: add local vls deps comments 2023-07-21 23:47:44 +00:00
irriden
32aba182ee Merge pull request #95 from stakwork/07-20-multisigner
multi signer first steps
2023-07-21 00:48:29 +00:00
irriden
3053a9273a broker: create atomicu16, use as global sequence number 2023-07-20 23:45:27 +00:00
irriden
ad0a2f90ad broker: make done_being_busy ordering::release, not ordering::relaxed
we want to make sure that all operations before this call have completed before
setting BUSY back to false
2023-07-20 18:27:51 +00:00
irriden
6adf9ef144 broker: remove sequence number from individual channel structs
for now broker sets sequence number to 0 across the board
2023-07-20 17:47:19 +00:00
irriden
21ac62c42a point sphinx-rs to better-types merge commit 2023-07-19 17:46:05 +00:00
Evan Feenstra
aebd4e10bb merge 2023-07-17 09:14:29 -07:00
Evan Feenstra
bbdff4eab0 bump sphinx-rs, drop rmp_serde 2023-07-17 09:10:57 -07:00
irriden
8c1f9937d3 bump sphinx-rs 2023-07-14 03:01:08 +00:00
Evan Feenstra
3f99d27766 broker configurable ws port 2023-07-13 15:47:35 -07:00
Evan Feenstra
092849cbc2 bump sphinx-rs 2023-07-11 16:25:48 -07:00
Evan Feenstra
140afe2564 bump sphinx-rs 2023-07-11 10:20:39 -07:00
Evan Feenstra
850ca9aaaf bump deps 2023-07-10 20:44:06 -07:00
irriden
9fb78bbc2f bump sphinx-rs deps 2023-07-10 20:59:41 +00:00
irriden
f35b539d90 factory: update partition table 2023-07-10 20:13:37 +00:00
Evan Feenstra
ec10d1aaf8 re-send HELLO on reconnect 2023-07-07 13:20:58 -07:00
Evan Feenstra
e6f8ea8e34 both init_1 and init_2 topics 2023-07-07 13:15:32 -07:00
Evan Feenstra
249c5f9d8e rumqttd::router::routing log off 2023-07-07 12:58:16 -07:00
Evan Feenstra
c8501fdd10 immediate sub to hello and bye 2023-07-07 12:55:58 -07:00
Evan Feenstra
b796cb902a Merge pull request #93 from stakwork/fix/update-rumqttd
update sphinx-rs, send HELLO, drop alerts API in broker and use hello…
2023-07-07 11:58:59 -07:00
Evan Feenstra
f7f4c9968e merge master 2023-07-07 11:58:50 -07:00
Evan Feenstra
6d1c1424c2 update sphinx-rs, send HELLO, drop alerts API in broker and use hello topic instead 2023-07-07 11:53:44 -07:00
irriden
0b7920b79a memory: track biggest free block instead of total RAM
This accounts for memory fragmentation
Tested on multiple runs - restarts all good.
2023-07-05 20:26:11 +00:00
irriden
215efba46c update VLS and sphinx-rs 2023-07-05 04:32:40 +00:00
Evan Feenstra
18e6b7af4e let CONTROL msgs fail early 2023-07-03 16:20:38 -07:00
Evan Feenstra
47aa55792c Merge pull request #92 from stakwork/fix/fake-client-id
do not allow ctrl msgs to fake client id
2023-07-03 14:07:10 -07:00
Evan Feenstra
04af0e7c41 do not allow ctrl msgs to fake client id 2023-07-02 17:44:58 -07:00
irriden
dde735e2ce ota: adjust memory parameters for stable operation 2023-07-01 23:42:21 +00:00
irriden
d61bf9f910 build: inherit deps in sphinx-key 2023-06-30 21:35:20 +00:00