Skip to content

Commit 1157e1a

Browse files
author
Naor Livne
committed
adding device group examples to readme
1 parent e80c22d commit 1157e1a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,14 @@ app_conf = {
5252
connection.create_app("app_name", app_conf)
5353

5454
# create device group
55-
# TODO - add example of create a device_group
55+
device_group_config = {"apps": ["app_name"]}
56+
connection.create_device_group("device_group_name", device_group_config)
5657

57-
# list device group info
58-
# TODO - add example of listing a device group info
58+
# list device group
59+
connection.list_device_group("device_group_name")
5960

61+
# list device group info
62+
connection.list_device_group_info("device_group_name")
6063

6164
```
6265

0 commit comments

Comments
 (0)