浏览代码

fixing an errorcode of write service

Stasik0 10 年之前
父节点
当前提交
bdc119c672
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/server/ua_services_attribute.c

+ 1 - 1
src/server/ua_services_attribute.c

@@ -387,7 +387,7 @@ static UA_StatusCode writeValue(UA_Server *server, UA_WriteValue *wvalue) {
                 // array sizes are not checked to match
                 if(!wvalue->value.hasVariant || !UA_NodeId_equal(&vn->variable.variant.type->typeId,
                                                                  &wvalue->value.value.type->typeId)) {
-                    retval = UA_STATUSCODE_BADWRITENOTSUPPORTED;
+                	retval = UA_STATUSCODE_BADTYPEMISMATCH;
                     break;
                 }