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

receiveDefinition.mustache 414 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
  public void {{parentTypeName}}.{{connectMethod}}(String topic) {
2
    {{mqttHandlerAttribute}}().newConnection(topic, message -> {
René Schöne's avatar
René Schöne committed
3
4
      {{> mappingApplication}}
      {{#loggingEnabledForReads}}
5
      System.out.println("[Receive] " + 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
    });
  }