Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
Get all alarms on ua server
October 19, 2021
17:46, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,

Is the sdk provide a methode to get all alarms in ua server ?

thank

October 20, 2021
10:18, EEST
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 353
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

Do you mean a Client monitoring Alarms created by a Server when you say “get all alarms in ua server”? That has already been answered in this thread: https://forum.prosysopc.com/fo…..ng-alarms/

Or do you mean something else?

October 20, 2021
10:38, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello?

I want to create a REST API that will return all alarms generated in ua server.

Thank

October 20, 2021
13:27, EEST
Avatar
Jimmy Ni
Moderator
Members

Moderators
Forum Posts: 26
Member Since:
February 1, 2019
sp_UserOfflineSmall Offline

Hello,
You mentioned that you are “creating a REST API”, does it mean that you are developing a UA server with REST API?

October 20, 2021
15:29, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,
No, I am developing a REST API that through an ua client, retrieves the alarms generated by the ua server.

October 20, 2021
16:20, EEST
Avatar
Jimmy Ni
Moderator
Members

Moderators
Forum Posts: 26
Member Since:
February 1, 2019
sp_UserOfflineSmall Offline

Hello,
after you have subscribed to Server Object for Events, you can call ConditionRefresh manually:

client.call(Identifiers.ConditionType, Identifiers.ConditionType_ConditionRefresh, new Variant[] {new Variant(sub.getSubscriptionId())});

“client” here is your UaClient object and “sub” is the Subscription object ConditionRefresh is called for. This will return all active alarms and conditions.

October 21, 2021
11:56, EEST
Avatar
Sabari
Member
Members
Forum Posts: 62
Member Since:
June 21, 2021
sp_UserOfflineSmall Offline

Hello,
I get empty array. How ConditionRefresh work ?

October 21, 2021
12:41, EEST
Avatar
Jimmy Ni
Moderator
Members

Moderators
Forum Posts: 26
Member Since:
February 1, 2019
sp_UserOfflineSmall Offline

Hello,
Sorry that “return” might be a incorrect word here. ConditionRefresh itself doesn’t return anything. Your server will resend notifications for all active Conditions. Please check OPC UA Specification Part 9 for more information.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 27
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 734
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6516
Newest Members:
basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin, Brett.Rollason
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1