Commit Graph

274 Commits

Author SHA1 Message Date
decentclock
f7585c7083 readme: correct section pointer 2022-09-30 16:00:27 -04:00
decentclock
5f255eedc4 readme: fix main readme formatting 2022-09-30 15:58:50 -04:00
decentclock
af7238cfb8 build: check for some installed bins before building 2022-09-30 15:52:06 -04:00
decentclock
e25a877b46 Merge pull request #66 from stakwork/update-build
set CC and CFLAGS variables automatically when building sphinx-key
create deploy.sh for automated deployments
update readmes
2022-09-30 15:03:08 -04:00
decentclock
a282839676 build: automatically set CC and CFLAGS file when building sphinx-key
Also take this opportunity to update the READMEs given the new little deploy.sh script we put together
2022-09-30 13:49:58 -04:00
Evan Feenstra
f20396d5de Merge pull request #64 from stakwork/ota
Add OTA updates support
2022-09-29 11:17:32 -07:00
Evan Feenstra
89b4ac45a8 allow env vars to overwrite broker configs 2022-09-28 15:55:20 -07:00
decentclock
fcdd2ace7f factory, ota: add ota led status
main app blinks orange while downloading update to sd card
factory app does a solid orange while writing the update from the sdcard to flash
2022-09-28 17:23:19 -04:00
decentclock
7d39855751 ota: dispatch update download to its own thread 2022-09-28 13:51:45 -04:00
Evan Feenstra
c180a15c9c merge master 2022-09-27 12:54:04 -07:00
Evan Feenstra
7c886b0f15 refactor tester bin, configurable client id, sdcard root 2022-09-27 12:49:41 -07:00
decentclock
8c7c081b72 Optimize factory binary size 2022-09-26 14:14:23 -04:00
decentclock
85779d5a29 update sphinx-key cargo.lock, add factory cargo.lock 2022-09-25 21:28:44 -04:00
decentclock
2a4945f44a tester: add ota control message sends to ctrl bin 2022-09-25 21:28:44 -04:00
decentclock
f59aa3de57 factory: init, writes upgrades from sd card to flash and sets up ESP to boot newly written app 2022-09-25 21:28:36 -04:00
decentclock
79fea3092d ota: pull update binary from http server, write it to sd card, and factory reset 2022-09-25 16:59:48 -04:00
decentclock
f208a5af5e propagate errors to user in handle_control_response 2022-09-24 16:08:33 -04:00
Evan Feenstra
0002374a7f configurable within time for timestamp auth 2022-09-23 10:43:14 -07:00
decentclock
426735758a Automatically switch ESP from AP to Client mode when config received 2022-09-23 12:35:25 -04:00
Evan Feenstra
54ce203b60 strip debuginfo on release profile 2022-09-22 18:20:54 -07:00
Evan Feenstra
82e491e842 Merge pull request #65 from stakwork/broker-auth
Broker auth
2022-09-22 13:00:39 -07:00
Evan Feenstra
24ed444fea run from debian:bullseye-slim only 2022-09-21 12:39:25 -07:00
Evan Feenstra
381b765f9a some notes 2022-09-20 09:45:56 -07:00
Evan Feenstra
aeb48e36c3 tester and esp32 create signed timestamp for auth 2022-09-16 12:30:33 -07:00
Evan Feenstra
5de335c797 more clears 2022-09-15 16:12:34 -07:00
Evan Feenstra
d5eb32d2d8 vls error response 2022-09-15 14:15:36 -07:00
Evan Feenstra
55383f1337 error parser 2022-09-15 12:03:24 -07:00
Evan Feenstra
33a4d95dbf Merge pull request #63 from stakwork/error-handler
handle errors in broker
2022-09-15 12:00:26 -07:00
Evan Feenstra
cbb262829c handle errors in broker 2022-09-15 12:00:03 -07:00
Evan Feenstra
15d9e916a2 Merge pull request #62 from stakwork/refactor-config-store
Refactor config store
2022-09-14 15:04:06 -07:00
Evan Feenstra
fad091c413 broker Dockerfile 2022-09-14 15:01:29 -07:00
Evan Feenstra
dc2afb0547 fix improt 2022-09-14 14:11:13 -07:00
Evan Feenstra
7aa4dd72da use sphinx-rs glyph types 2022-09-13 16:25:39 -07:00
Evan Feenstra
1577766394 fix nonce checker 2022-09-12 16:01:51 -07:00
Evan Feenstra
708003ca4d policy stored in flash, more FlashPersister impls, handle_control_response util, ControlResponse::Error, simple policy 2022-09-12 15:13:48 -07:00
Evan Feenstra
17fee73ccb fix new_with_persister, return the original msg from controller.handle 2022-09-12 11:28:35 -07:00
Evan Feenstra
51659c74ac central topics consts shared between modules 2022-09-12 10:37:04 -07:00
Evan Feenstra
6d566107f6 separate config and seed store, simplify flash access, more methods in FlashPersister 2022-09-10 17:36:07 -07:00
decentclock
3d940ed349 readme fixes 2022-09-09 15:18:59 -04:00
Evan Feenstra
81d436bc42 Merge pull request #60 from stakwork/broker-ctrl
refactor broker to use tokio rather than std::thread
2022-09-09 11:48:07 -07:00
Evan Feenstra
2b1e184395 impl set_nonce for FlashPersister 2022-09-09 11:47:35 -07:00
Evan Feenstra
8c48ebda07 update tester main, Nonce message is the only one with nonce unchecked 2022-09-09 11:40:23 -07:00
Evan Feenstra
13f23f7111 tester ctrl configurable nonce and url 2022-09-09 10:33:09 -07:00
Evan Feenstra
fdd8b54e40 broker rocket.toml 2022-09-09 10:18:19 -07:00
Evan Feenstra
8e48f904ae control persister with flash, ctrl handler func, return mqtt pub 2022-09-08 16:42:44 -07:00
Evan Feenstra
de68957cdf round trip ControlMessage auth test 2022-09-08 14:47:58 -07:00
Evan Feenstra
21ed9f97ea control msg tester, fix mqtt router startup 2022-09-07 17:05:31 -07:00
Evan Feenstra
3992dfe6fe refactor broker to use tokio rather than std::thread 2022-09-07 12:05:54 -07:00
Evan Feenstra
8bf5ca4941 Merge pull request #59 from stakwork/policy-setter
Policy setter
2022-09-07 11:57:59 -07:00
Evan Feenstra
440cbf2e59 merge master 2022-09-06 14:36:24 -07:00