GitLab update scheduled for Friday, January 21th between 08:15 and 08:45 CET. If unpleasant, please contact René or Martin.

readDefinition.mustache 411 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
3
4
  public void {{parentTypeName}}.{{connectMethod}}(String topic) {
    {{mqttUpdaterAttribute}}().newConnection(topic, message -> {
      {{> mappingApplication}}
      {{#loggingEnabledForReads}}
5
      System.out.println("[Read] " + topic + " -> {{tokenName}} = " + {{lastResult}});{{!lastResult has to be a new attribute}}
René Schöne's avatar
René Schöne committed
6
      {{/loggingEnabledForReads}}
7
      set{{tokenName}}({{lastResult}});
René Schöne's avatar
René Schöne committed
8
9
    });
  }