chrisdutz commented on issue #1718:
URL: https://github.com/apache/plc4x/issues/1718#issuecomment-2272871647

   The main issue I think was that some addresses don't contain the type. 
   Initially we only had the option to add the simple values. But this caused 
problems, because the driver had no way to see the real type it should send to 
the PLC. 
   
   We were seeing that for example people passed in an "integer", which would 
be converted to an DINT and when sending a DINT to a field that's an USINT, 
this causes issues. Also when writing a UDT or an array, we can't pass in a 
primitives, but we need to pass in PlcList or PlcStruct objects. 
   
   In general we would have 2 options:
   - Extend every address string with the type at the end
   - Require the user to pass in PlcValues of the expected type
   
   I'm personally leaning more towards the fully qualified address option ... 
however, as mentioned this fails for structs (For arrays we could find a way 
around it).


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to