All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.andy2003.smareader.inverter.InvDeviceClass Maven / Gradle / Ivy

package com.github.andy2003.smareader.inverter;

public enum InvDeviceClass {
	/**
	 * DevClss0
	 */
	AllDevices(8000),
	/**
	 * DevClss1
	 */
	SolarInverter(8001),
	/**
	 * DevClss2
	 */
	WindTurbineInverter(8002),
	/**
	 * DevClss7
	 */
	BatteryInverter(8007),
	/**
	 * DevClss33
	 */
	Consumer(8033),
	/**
	 * DevClss64
	 */
	SensorSystem(8064),
	/**
	 * DevClss65
	 */
	ElectricityMeter(8065),
	/**
	 * DevClss128
	 */
	CommunicationProduct(8128);

	private int value;

	InvDeviceClass(int value) {
		this.value = value;
	}

	public static InvDeviceClass intToEnum(int value) {
		for (InvDeviceClass enumValue : values()) {
			if (enumValue.value == value) {
				return enumValue;
			}
		}
		return null;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy