We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83af0aa + b4d35d8 commit 3e09ebfCopy full SHA for 3e09ebf
1 file changed
README.md
@@ -61,6 +61,10 @@ async def main():
61
sphere = cloud.spheres.find('awesomeSphere')
62
for crownstone in sphere.crownstones:
63
await crownstone.turn_on()
64
+
65
+ # close session
66
+ # required when ran as standalone program, optional if ran in integration.
67
+ await cloud.close_session()
68
69
asyncio.run(main())
70
```
@@ -77,6 +81,10 @@ cloud.initialize_sync()
77
81
# get a crownstone and turn it on
78
82
crownstone = cloud.get_crownstone('awesomeCrownstone')
79
83
crownstone.turn_on_sync()
84
85
+# close session
86
+# required when ran as standalone program, optional if ran in integration.
87
+cloud.close_session_sync()
80
88
89
90
### Initialization
0 commit comments