Class SmartGatewaysAdapter

All Implemented Interfaces:
AutoCloseable, org.eclipse.paho.mqttv5.client.MqttCallback, org.springframework.boot.actuate.health.HealthContributor, org.springframework.boot.actuate.health.HealthIndicator

public class SmartGatewaysAdapter extends MqttDataSourceAdapter<SmartGatewaysDataSource>
  • Constructor Details

    • SmartGatewaysAdapter

      public SmartGatewaysAdapter(SmartGatewaysDataSource dataSource, MqttConfiguration mqttConfiguration)
      Creates the datasource for the Smart Gateways Adapter. It connects to the specified MQTT broker and expects that the adapter publishes its JSON messages on the specified topic. Any OBIS code without a time field will be assigned a Unix timestamp of 0.
      Parameters:
      dataSource - The entity of the data source.
  • Method Details