DamonDBT commented on issue #929:
URL: https://github.com/apache/plc4x/issues/929#issuecomment-1590494953
got same problem when use plc4j 0.10.0 to subscript to s7 PLC.
the fellow check got **true**.
`plcConnection.getMetadata().canSubscribe() `
but when run the demo :
```
final PlcSubscriptionRequest.Builder builder =
plcConnection.subscriptionRequestBuilder();
String[] address = new String[2];
List<String[]> taglist = new ArrayList<>();
address[0] = "DB145.DBD10";
address[1] = "%DB145.DBD10:REAL";
taglist.add(address);
for (int i = 0; i < taglist.size(); i++) {
builder.addChangeOfStateField(taglist.get(0)[0],
taglist.get(0)[1]);
}
PlcSubscriptionRequest subscriptionRequest = builder.build();
final PlcSubscriptionResponse subscriptionResponse =
subscriptionRequest.execute().get();
```
still got error : org.apache.plc4x.java.s7.readwrite.field.S7Field cannot
be cast to org.apache.plc4x.java.s7.readwrite.field.S7SubscriptionField
--
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]