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