How to get Description of Status Code |OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
How to get Description of Status Code
Avatar
Antoni Gnanaraj
Member
Members
Forum Posts: 5
Member Since:
04/23/2016
sp_UserOfflineSmall Offline
1
01/29/2018 - 04:55
sp_Permalink sp_Print

Dear Sir,

We are developing OPC UA client in .NET platform ( Frame work 4.0 )
This application uses  Opc.Ua.Client.dll and Opc.Ua.Core.DLL of OPC foundation DLLS for OPC specification.
We are logging the value, Quality, Time stamp of Tag in text (.txt ) file.
We want to log Description of the quality .

For e.g we need to log “BadOutOfMemory” for the error code 0x80030000

Do we have any API which returns the description of the error code ?

 

Thanks
Antoni

Avatar
Randy Armstrong
Admin
Forum Posts: 1580
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
01/30/2018 - 10:32
sp_Permalink sp_Print

ServiceResult code = StatusCodes.BadOutOfMemory;

var text = code.ToString();

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 24
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1446
Posts: 4891