Skip to content
GitLab
Explore
Sign in
You need to sign in or sign up before continuing.
Changes
Page history
Add another example to oldb snippets
authored
Sep 22, 2022
by
Marcus Schilling
Show whitespace changes
Inline
Side-by-side
KnowledgeBase/CII.md
View page @
9b45caec
...
@@ -1703,6 +1703,16 @@ Type "help", "copyright", "credits" or "license" for more information.
...
@@ -1703,6 +1703,16 @@ Type "help", "copyright", "credits" or "license" for more information.
'my text'
'my text'
```
```
… and, to subscribe to a datapoint:
```
>>> class CB:
>>> def new_value(self,value,uri):
>>> print ("value:", value.get_value())
>>> sub = elt.oldb.typesupport.STRING.get_new_subscription_instance(CB())
>>> oldb.get_data_point(Uri("cii.oldb:/ccs/tst/tmp1")).subscribe(sub)
```
… and, to delete a datapoint:
… and, to delete a datapoint:
```
```
...
...