Client to subscription. It will receive events from server
| 8 | |
| 9 | |
| 10 | class SubHandler(object): |
| 11 | |
| 12 | """ |
| 13 | Client to subscription. It will receive events from server |
| 14 | """ |
| 15 | |
| 16 | def datachange_notification(self, node, val, data): |
| 17 | print("Python: New data change event", node, val) |
| 18 | |
| 19 | def event_notification(self, event): |
| 20 | print("Python: New event", event) |
| 21 | |
| 22 | |
| 23 | if __name__ == "__main__": |