cptjackwu commented on issue #930:
URL: https://github.com/apache/plc4x/issues/930#issuecomment-1537732535

   String  value = "ac";
           byte[] stringvalue = value.getBytes();
           byte[] dataTowrite = new byte[stringvalue.length+2];
           dataTowrite[0] = (byte)2;  
           dataTowrite[1] =(byte)2; 
           System.arraycopy(stringvalue,0 ,dataTowrite,2,stringvalue.length);
   
   builder.addItem("value-3", "%DB5000:6:STRING(2)",dataTowrite);
   or
   builder.addItem("value-3", "%DB5000:6:STRING",dataTowrite);
   or
   builder.addItem("value-3", "%DB5000:6:STRING(2)",stringvalue );
   or
   builder.addItem("value-3", "%DB5000:6:STRING(2)",value);
   
   ......
   
   I have tried writing n types and all reported the same error。
   
   
   
   


-- 
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