Avatar

Please consider registering
guest

sp_LogInOut Log In sp_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 RSS sp_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: 346
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/forum/opc-ua-java-sdk/mnonitoring-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:
25 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1