Skip to content

[DESIGN] Tags introduction [IOT-1359] #48

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

Merged
merged 9 commits into from
Oct 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add second device in usecase
  • Loading branch information
polldo committed Oct 19, 2021
commit 109f579b6cd7b31ba4a69ffe9b2c412191e2f7b3
7 changes: 4 additions & 3 deletions designs/0002-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,19 @@ The customer needs to have:

Steps to setup an arduino device:
- arduino device is provisioned, information about its future location are passed as tags:
`$ arduino-cloud-cli device create -n LedDevice --tags location=Milan,room=101,floor=1`
`$ arduino-cloud-cli device create -n LedDevice101 --tags location=Milan,room=101,floor=1`
- thing is created starting from the thing template and bound to the device:
`$ arduino-cloud-cli thing create -n LedThing101 -t LedThingTemplate.yaml `
`$ arduino-cloud-cli thing bind -i <thingID> -d <deviceID>`
- dashboard is created overriding the thing placeholder with the actual thing id:
`$ arduino-cloud-cli dashboard create -n LedDashboard101 -t LedDashboardTemplate.yaml --override LedThing=<thingID>`
- The sketch is uploaded to the device

This steps should be repeated for every arduino device.
This steps should be repeated for every arduino device. So, for example, another device in a different room could be provisioned with: `$ arduino-cloud-cli device create -n LedDevice102 --tags location=Milan,room=102,floor=1`

When the customer wants to update the firmware of the devices, he can use the ota command specifying the tags of the devices to be updated:
`$ arduino-cloud-cli ota upload --file <newFirmware.bin> --device-tags floor=2`
`$ arduino-cloud-cli ota upload --file <newFirmware.bin> --device-tags floor=1`
In this case both the devices LedDevice101 and LedDevice102 will be updated.

## Implementation

Expand Down