Skip to content

Commit

Permalink
Correction provided by email from jean-christophe.frehling. Thanks !
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianTremblay committed Feb 2, 2021
1 parent bd0e545 commit 75e1033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions BAC0/core/functions/cov.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class SubscriptionContext:

def __init__(self, address, objectID, confirmed=None, lifetime=None, callback=None):
self.address = address
self.subscriberProcessIdentifier = self.next_proc_id
self.next_proc_id += 1
self.subscriberProcessIdentifier = SubscriptionContext.next_proc_id
SubscriptionContext.next_proc_id += 1
self.monitoredObjectIdentifier = objectID
self.issueConfirmedNotifications = confirmed
self.lifetime = lifetime
Expand Down
2 changes: 1 addition & 1 deletion doc/source/cov.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ the function as a callback to the subscription ::

# elements is a dict containing all the information of the COV
def my_callback(elements):
print("Present value is : {}".format(elements['properties']['presentValue'])
print("Present value is : {}".format(elements['properties']['presentValue']))

.. note::
Here you can find a typical COV notification and the content of elements.
Expand Down

0 comments on commit 75e1033

Please sign in to comment.