io.github.joblo2213.sma.speedwire.protocol.telegrams.EnergyMeterTelegram Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sma.speedwire Show documentation
Show all versions of sma.speedwire Show documentation
SMA-Speedwire is an api for communicating with SMA products over Ethernet using the speedwire
interface.
It allows listening for exchanged data between your devices and logging meter readings.
package io.github.joblo2213.sma.speedwire.protocol.telegrams;
import io.github.joblo2213.sma.speedwire.protocol.InvalidTelegramException;
import io.github.joblo2213.sma.speedwire.protocol.OBISIdentifier;
import io.github.joblo2213.sma.speedwire.protocol.measuringChannels.EnergyMeterChannels;
import io.github.joblo2213.sma.speedwire.protocol.measuringChannels.MeasuringChannel;
import tech.units.indriya.quantity.Quantities;
import javax.measure.Quantity;
import javax.measure.quantity.Time;
import java.math.BigInteger;
import java.net.InetAddress;
import java.util.HashMap;
/**
* A telegram from an SMA Energy Meter or an SMA Sunny Home Manager (2.0)
*/
public class EnergyMeterTelegram extends Telegram {
private final int SUSyID;
private final BigInteger serNo;
private final Quantity