Topic RSS
Writing a single value of an array
April 14, 2014
7:16, EEST
7:16, EEST
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
December 21, 2011
Offline
Unfortunately, that’s not currently possible, but you need to use write like this
NumericRange indexRange = new NumericRange(1); // Your array index(es) here
final WriteValue[] writeValues = { new WriteValue(nodeId, Attributes.Value,
indexRange.toString(), new DataValue(new Variant(value))) };
final WriteResponse response = client.write(writeValues);
final StatusCode result = response.getResults()[0];
final WriteValue[] writeValues = { new WriteValue(nodeId, Attributes.Value,
indexRange.toString(), new DataValue(new Variant(value))) };
final WriteResponse response = client.write(writeValues);
final StatusCode result = response.getResults()[0];
We will need to introduce a new overload for writeValue() to enable specifying the range as well.
April 16, 2014
14:11, EEST
14:11, EEST
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
December 21, 2011
Offline
April 18, 2014
14:18, EEST
14:18, EEST
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
December 21, 2011
Offline
June 26, 2014
16:02, EEST
16:02, EEST
gjevremovic
Member
Members
Forum Posts: 49
Member Since:
January 30, 2014
January 30, 2014
Offline
June 27, 2014
7:25, EEST
7:25, EEST
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
December 21, 2011
Offline
Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
16 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: 738
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6451
Newest Members:
jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettingerModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1