From aa406b0f672cd69bcfab209c3630965fdf8ea955 Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Mon, 1 Feb 2021 11:51:48 +0100
Subject: [PATCH] Set the namespace index to 1, SDP has not implemented it yet

---
 SDP/SDP/SDP.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SDP/SDP/SDP.py b/SDP/SDP/SDP.py
index 00568ca42..93729b9fe 100644
--- a/SDP/SDP/SDP.py
+++ b/SDP/SDP/SDP.py
@@ -132,8 +132,8 @@ class SDP(Device):
         try:
             self.name_space_index = self.client.get_namespace_index("http://lofar.eu")
         except Exception as e:
-            self.warn_stream("Cannot determine the OPC-UA name space index.  Will try and use the default = 2.")
-            self.name_space_index = 2
+            self.name_space_index = 1
+            self.warn_stream("Cannot determine the OPC-UA name space index.  Will try and use the default = %d." % (self.name_space_index))
 
         self.obj_node = self.client.get_objects_node()
         # TODO
-- 
GitLab