Explorar el Código

fix writing a <null>

Julius Pfrommer hace 10 años
padre
commit
1321f2e74d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/ua_services_attribute.c

+ 1 - 1
src/server/ua_services_attribute.c

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