Class MicroTeleinfoV3Adapter

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

public class MicroTeleinfoV3Adapter extends MqttDataSourceAdapter<MicroTeleinfoV3DataSource>
  • Constructor Details

    • MicroTeleinfoV3Adapter

      public MicroTeleinfoV3Adapter(MicroTeleinfoV3DataSource dataSource, com.fasterxml.jackson.databind.ObjectMapper mapper, MqttConfiguration mqttConfiguration)
      Creates the datasource for the Micro Teleinfo V3. 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.
      mapper - ObjectMapper that is used to deserialize the JSON messages. A MicroTeleinfoV3DataFieldDeserializer will be registered to this mapper.
      mqttConfiguration - The MQTT configuration that is used to connect to the MQTT broker.
  • Method Details