|
@@ -675,7 +675,7 @@ START_TEST(WriteSingleAttributeNodeId) {
|
|
wValue.attributeId = UA_ATTRIBUTEID_NODEID;
|
|
wValue.attributeId = UA_ATTRIBUTEID_NODEID;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
UA_Variant_setScalar(&wValue.value.value, &id, &UA_TYPES[UA_TYPES_NODEID]);
|
|
UA_Variant_setScalar(&wValue.value.value, &id, &UA_TYPES[UA_TYPES_NODEID]);
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADWRITENOTSUPPORTED);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADWRITENOTSUPPORTED);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -690,7 +690,7 @@ START_TEST(WriteSingleAttributeNodeclass) {
|
|
wValue.attributeId = UA_ATTRIBUTEID_NODECLASS;
|
|
wValue.attributeId = UA_ATTRIBUTEID_NODECLASS;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
UA_Variant_setScalar(&wValue.value.value, &class, &UA_TYPES[UA_TYPES_NODECLASS]);
|
|
UA_Variant_setScalar(&wValue.value.value, &class, &UA_TYPES[UA_TYPES_NODECLASS]);
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADWRITENOTSUPPORTED);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADWRITENOTSUPPORTED);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -704,7 +704,7 @@ START_TEST(WriteSingleAttributeBrowseName) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_BROWSENAME;
|
|
wValue.attributeId = UA_ATTRIBUTEID_BROWSENAME;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -718,7 +718,7 @@ START_TEST(WriteSingleAttributeDisplayName) {
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_DISPLAYNAME;
|
|
wValue.attributeId = UA_ATTRIBUTEID_DISPLAYNAME;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -734,7 +734,7 @@ START_TEST(WriteSingleAttributeDescription) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_DESCRIPTION;
|
|
wValue.attributeId = UA_ATTRIBUTEID_DESCRIPTION;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -749,7 +749,7 @@ START_TEST(WriteSingleAttributeWriteMask) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_WRITEMASK;
|
|
wValue.attributeId = UA_ATTRIBUTEID_WRITEMASK;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -763,7 +763,7 @@ START_TEST(WriteSingleAttributeUserWriteMask) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_USERWRITEMASK;
|
|
wValue.attributeId = UA_ATTRIBUTEID_USERWRITEMASK;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -777,7 +777,7 @@ START_TEST(WriteSingleAttributeIsAbstract) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_ISABSTRACT;
|
|
wValue.attributeId = UA_ATTRIBUTEID_ISABSTRACT;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -791,7 +791,7 @@ START_TEST(WriteSingleAttributeSymmetric) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_SYMMETRIC;
|
|
wValue.attributeId = UA_ATTRIBUTEID_SYMMETRIC;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -805,7 +805,7 @@ START_TEST(WriteSingleAttributeInverseName) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_INVERSENAME;
|
|
wValue.attributeId = UA_ATTRIBUTEID_INVERSENAME;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -819,7 +819,7 @@ START_TEST(WriteSingleAttributeContainsNoLoops) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_CONTAINSNOLOOPS;
|
|
wValue.attributeId = UA_ATTRIBUTEID_CONTAINSNOLOOPS;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -833,7 +833,7 @@ START_TEST(WriteSingleAttributeEventNotifier) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_EVENTNOTIFIER;
|
|
wValue.attributeId = UA_ATTRIBUTEID_EVENTNOTIFIER;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -847,7 +847,7 @@ START_TEST(WriteSingleAttributeValue) {
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUE;
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUE;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
|
|
|
|
UA_DataValue resp;
|
|
UA_DataValue resp;
|
|
@@ -874,7 +874,7 @@ START_TEST(WriteSingleAttributeValueRangeFromScalar) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "myarray");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "myarray");
|
|
wValue.indexRange = UA_STRING("0,0");
|
|
wValue.indexRange = UA_STRING("0,0");
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUE;
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUE;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -889,7 +889,7 @@ START_TEST(WriteSingleAttributeValueRangeFromArray) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "myarray");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "myarray");
|
|
wValue.indexRange = UA_STRING("0,0");
|
|
wValue.indexRange = UA_STRING("0,0");
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUE;
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUE;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -904,7 +904,7 @@ START_TEST(WriteSingleAttributeDataType) {
|
|
wValue.attributeId = UA_ATTRIBUTEID_DATATYPE;
|
|
wValue.attributeId = UA_ATTRIBUTEID_DATATYPE;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
UA_Variant_setScalar(&wValue.value.value, &typeId, &UA_TYPES[UA_TYPES_NODEID]);
|
|
UA_Variant_setScalar(&wValue.value.value, &typeId, &UA_TYPES[UA_TYPES_NODEID]);
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADTYPEMISMATCH);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADTYPEMISMATCH);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -918,7 +918,7 @@ START_TEST(WriteSingleAttributeValueRank) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUERANK;
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUERANK;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
// Returns attributeInvalid, since variant/value may be writable
|
|
// Returns attributeInvalid, since variant/value may be writable
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
@@ -933,7 +933,7 @@ START_TEST(WriteSingleAttributeArrayDimensions) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_ARRAYDIMENSIONS;
|
|
wValue.attributeId = UA_ATTRIBUTEID_ARRAYDIMENSIONS;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
// Returns attributeInvalid, since variant/value may be writable
|
|
// Returns attributeInvalid, since variant/value may be writable
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADTYPEMISMATCH);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADTYPEMISMATCH);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
@@ -948,7 +948,7 @@ START_TEST(WriteSingleAttributeAccessLevel) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_ACCESSLEVEL;
|
|
wValue.attributeId = UA_ATTRIBUTEID_ACCESSLEVEL;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -962,7 +962,7 @@ START_TEST(WriteSingleAttributeUserAccessLevel) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_USERACCESSLEVEL;
|
|
wValue.attributeId = UA_ATTRIBUTEID_USERACCESSLEVEL;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -976,7 +976,7 @@ START_TEST(WriteSingleAttributeMinimumSamplingInterval) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_MINIMUMSAMPLINGINTERVAL;
|
|
wValue.attributeId = UA_ATTRIBUTEID_MINIMUMSAMPLINGINTERVAL;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -990,7 +990,7 @@ START_TEST(WriteSingleAttributeHistorizing) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_HISTORIZING;
|
|
wValue.attributeId = UA_ATTRIBUTEID_HISTORIZING;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_GOOD);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -1004,7 +1004,7 @@ START_TEST(WriteSingleAttributeExecutable) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_EXECUTABLE;
|
|
wValue.attributeId = UA_ATTRIBUTEID_EXECUTABLE;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -1018,7 +1018,7 @@ START_TEST(WriteSingleAttributeUserExecutable) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "the.answer");
|
|
wValue.attributeId = UA_ATTRIBUTEID_USEREXECUTABLE;
|
|
wValue.attributeId = UA_ATTRIBUTEID_USEREXECUTABLE;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADNODECLASSINVALID);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|
|
@@ -1032,7 +1032,7 @@ START_TEST(WriteSingleDataSourceAttributeValue) {
|
|
wValue.nodeId = UA_NODEID_STRING(1, "cpu.temperature");
|
|
wValue.nodeId = UA_NODEID_STRING(1, "cpu.temperature");
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUE;
|
|
wValue.attributeId = UA_ATTRIBUTEID_VALUE;
|
|
wValue.value.hasValue = true;
|
|
wValue.value.hasValue = true;
|
|
- UA_StatusCode retval = Service_Write_single(server, &adminSession, &wValue);
|
|
|
|
|
|
+ UA_StatusCode retval = UA_Server_write(server, &wValue);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADWRITENOTSUPPORTED);
|
|
ck_assert_int_eq(retval, UA_STATUSCODE_BADWRITENOTSUPPORTED);
|
|
UA_Server_delete(server);
|
|
UA_Server_delete(server);
|
|
} END_TEST
|
|
} END_TEST
|