-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Wip on rewriting shadows to async * Further work on async shadows. Still working on compile errors * Fix: Async shadow (#60) * fix asyunc shadow * renaming of handle message and some linting * shadows error fix and handle delta should wait for connected * fmt * Add const generic SUBS to shadows * Fix/async shadow (#61) * fix asyunc shadow * renaming of handle message and some linting * shadows error fix and handle delta should wait for connected * fmt * subscribe to get shadow and do not overwrite desired state * Get shadow should deserialize patchState * wait for accepted and rejected for delete and update as well * Make sure OTA job documents can be deserialized with no codesigning properties in the document (#62) * Dont blindly copy serde attrs in ShadowPatch derive, but rather introduce patch attr that specifies attrs to copy * Add skip_serializing_if none to all patchstate fields * Shadows: Check client token on all request/response pairs * Create initial shadow state, if dao read fails during getShadow operation * remove some client token checks * Fix not holding delta message across report call * handle delta on get shadow * Bump embedded-mqtt * Fix all tests * Allow reporting non-persisted shadows directly, through a report fn * Bump embedded-mqtt * Enhancement(async): Mutex shadow to borrow as immutable (#63) * Use mutex to borrow shadow as immutable * remove .git in embedded-mqtt dependency --------- Co-authored-by: Kenneth Knudsen <[email protected]> Co-authored-by: Kenneth Knudsen <[email protected]>
- Loading branch information
1 parent
f424608
commit f924e1e
Showing
23 changed files
with
979 additions
and
917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ members = ["shadow_derive"] | |
[package] | ||
name = "rustot" | ||
version = "0.5.0" | ||
authors = ["Mathias Koch <[email protected]>"] | ||
authors = ["Factbird team <[email protected]>"] | ||
description = "AWS IoT" | ||
readme = "README.md" | ||
keywords = ["iot", "no-std"] | ||
categories = ["embedded", "no-std"] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/BlackbirdHQ/rustot" | ||
repository = "https://github.com/FactbirdHQ/rustot" | ||
edition = "2021" | ||
documentation = "https://docs.rs/rustot" | ||
exclude = ["/documentation"] | ||
|
@@ -29,7 +29,7 @@ serde_cbor = { version = "0.11", default-features = false, optional = true } | |
serde-json-core = { version = "0.5" } | ||
shadow-derive = { path = "shadow_derive", version = "0.2.1" } | ||
embedded-storage-async = "0.4" | ||
embedded-mqtt = { git = "ssh://[email protected]/BlackbirdHQ/embedded-mqtt/", rev = "d766137" } | ||
embedded-mqtt = { git = "ssh://[email protected]/FactbirdHQ/embedded-mqtt", rev = "d2b7c02" } | ||
|
||
futures = { version = "0.3.28", default-features = false } | ||
|
||
|
@@ -46,6 +46,7 @@ embedded-nal-async = "0.7" | |
env_logger = "0.11" | ||
sha2 = "0.10.1" | ||
static_cell = { version = "2", features = ["nightly"] } | ||
|
||
tokio = { version = "1.33", default-features = false, features = [ | ||
"macros", | ||
"rt", | ||
|
@@ -73,5 +74,13 @@ ota_http_data = [] | |
|
||
std = ["serde/std", "serde_cbor?/std"] | ||
|
||
defmt = ["dep:defmt", "heapless/defmt-03", "embedded-mqtt/defmt"] | ||
defmt = [ | ||
"dep:defmt", | ||
"heapless/defmt-03", | ||
"embedded-mqtt/defmt", | ||
"embassy-time/defmt", | ||
] | ||
log = ["dep:log", "embedded-mqtt/log"] | ||
|
||
# [patch."ssh://[email protected]/FactbirdHQ/embedded-mqtt"] | ||
# embedded-mqtt = { path = "../embedded-mqtt" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.