-
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 configurations - Update trigger module to only use system workqueue, this is ok since we are not blocking the system workqueue for long periods of time and its simplifies the module quite a bit. - The trigger will only run as long as we are connected. Missing: - Adopting gnss enable. This depends on GNSS being sent internally from the location module. Signed-off-by: Simen S. Røstad <[email protected]>
- Loading branch information
1 parent
7300a84
commit e3e12a1
Showing
16 changed files
with
264 additions
and
118 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": led, | ||
"14301:1.0": config | ||
} | ||
|
||
led = { | ||
"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 | ||
} | ||
|
||
config = { | ||
"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
Oops, something went wrong.