You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by GitBox <gi...@apache.org> on 2021/09/06 11:36:15 UTC

[GitHub] [plc4x] splatch commented on pull request #265: Subscriptions for ADS in PLC4J

splatch commented on pull request #265:
URL: https://github.com/apache/plc4x/pull/265#issuecomment-913578335


   @rmeister I've just did a test run of subscribe logic with TC 2 and it didn't fly.
   
   Test code I made is following:
   ```
   String fieldString = ".BYTE_DAT:BYTE";
   System.out.println("Subscribe " + fieldString);
   plcConnection.subscriptionRequestBuilder()
       .addChangeOfStateField("field1", fieldString)
       .build().execute().whenComplete((r, e) -> {
           if (e != null) {
               e.printStackTrace();
               return;
           }
           System.out.println("Subscribed");
           r.getSubscriptionHandle("field1").register(handler);
       });
   ```
   
   Given symbol is declared in PLC program and it is resolved properly when I submit read request. Any ideas why it fails? I'll have another test with TC3.


-- 
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-unsubscribe@plc4x.apache.org

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