Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway robot module #3

Merged
merged 5 commits into from
Jun 29, 2022
Merged

Gateway robot module #3

merged 5 commits into from
Jun 29, 2022

Conversation

Stentsoe
Copy link
Contributor

Adding a robot module. The Module keeps track of the available robots. These are given by the mesh module and reported to the cloud module. Configuration of the robots are given from cloud and forwarded to the mesh module.

A module for keeping track and reporting of the robot configuration has been added. It does now have the states inherited from the cloud module as it will need to act differently based upon the state of the cloud connection. The model does for now not contain any functionality.
Adding a linked list to keep track of the robots that are available to the gateway. Functionality to add, remove and clear robots is implemented.
Robot module has added json formatting function to create report to the cloud shadow. Cloud module has modified to listen for the report events from the robot and to forward them to the cloud.
UI events are used to add robots and report robot state. This is only used for testing and demonstration until the mesh module is added. Button 1 adds a robot startig with address one incrementing by one each press. Likewise button 2 reports the state of robots starting from address 1 and incrementing.
Led values is now encoded as an array of four elements, r, g, b and blink time.
@Stentsoe Stentsoe merged commit e79f678 into main Jun 29, 2022
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant