patrickboisclair commented on issue #1156:
URL: https://github.com/apache/plc4x/issues/1156#issuecomment-1766660688

   Looks like when writing a tag, without specifying a PLCxxx datatype, in the 
class "PlcValueHandler.java":
       public static PlcValue of(PlcTag tag, Object[] values) {
           if (values.length == 1) {
               Object value = values[0];
               if(**tag.getPlcValueType()** == null) {
                   // TODO: This is a hacky shortcut ..
                   if(value instanceof PlcValue) {
                       return (PlcValue) value;
                   }
                   return new PlcNull();
               }
   
   the if (tag.getPlcValueType()... always return null


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@plc4x.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to