-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules: Handle desired configurations
Handle desired configurations set in the shadow: - Add cddl schema for configurations set in the shadow - Add configuration channel that interested modules can subscribe to - Enable PWM and set RGB values according to the shadow configuration (Currently the colors are a bit off, but the concept is working) Missing: - Reporting back to the shadows reported state (Do we need this?) - Adopting gnss enable and update interval. Signed-off-by: Simen S. Røstad <[email protected]>
- Loading branch information
1 parent
7300a84
commit 904c73a
Showing
10 changed files
with
172 additions
and
57 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
; Define the basic structure of the JSON object | ||
app-object = { | ||
"nrfcloud_mqtt_topic_prefix": tstr, | ||
"pairing": pairing-type, | ||
"lwm2m": lwm2m-map | ||
} | ||
|
||
; Define the pairing object with nested topics | ||
pairing-type = { | ||
"state": tstr, | ||
"topics": { | ||
"d2c": tstr, | ||
"c2d": tstr | ||
} | ||
} | ||
|
||
lwm2m-map = { | ||
"14240:1.0": lwm2m_object_1, | ||
"14301:1.0": lwm2m_object | ||
} | ||
|
||
lwm2m_object_1 = { | ||
"0": lwm2m_inner_object_1 | ||
} | ||
|
||
lwm2m_inner_object_1 = { | ||
"0": int .size 4, | ||
"1": int .size 4, | ||
"2": int .size 4, | ||
"99": int .size 8 | ||
} | ||
|
||
lwm2m_object = { | ||
"0": lwm2m_inner_object | ||
} | ||
|
||
lwm2m_inner_object = { | ||
"0": int .size 8, | ||
"1": bool, | ||
"99": int .size 8 | ||
} |
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