Apr-21-2021, 03:30 PM
(This post was last modified: Apr-21-2021, 03:31 PM by Ultrainstinct_5.)
(Apr-21-2021, 08:43 AM)ibreeden Wrote: In line 17 you do a recursive call to "BrowseServer(server,nodeId)" but you do nothing with the result of that call.
Should this perhaps have to be:
path_list += BrowseServer(server,nodeId)?
I noticed that and updated the code, but I'm still in the same situation as far as getting the format right take a look at the image:
1. You can see the OPC browse pane towards the left and the folders that I'm retrieving.
2. You can also see the code and output from the code towards the far right.
The output from code gets all the folders and the children under those folders but the issue as said before is formatting that I can't seem to get right?
In the image you can see I highlighted a set of paths based on the folder structure in the OPC browse pane. The code gets to those children folders and outputs them together to show that it went in/out of each folder.
The format for what I highlighted in blue should be:
["Loytec ROOT\BACnet Port\Datapoints\CVS-B230A","Loytec ROOT\BACnet Port\Datapoints\CVS-C220A","Loytec ROOT\BACnet Port\Datapoints\CVS-C220B"]