Package nl.basjes.sunspec.device
Object SunSpecDeviceModelFinder
-
- All Implemented Interfaces:
public class SunSpecDeviceModelFinder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSunSpecDeviceModelFinder.DeviceSunSpecModel
-
Field Summary
Fields Modifier and Type Field Description public final static SunSpecDeviceModelFinderINSTANCE
-
Method Summary
Modifier and Type Method Description final List<SunSpecDeviceModelFinder.DeviceSunSpecModel>findDeviceSunSpecModels(ModbusDevice modbusDevice)Each SunSpec device supports a different set of SunSpec Models. final Pair<Address, SchemaDevice>findSunSpecDevice(ModbusDevice modbusDevice)Create a SchemaDevice with the SunSpec header -
-
Method Detail
-
findDeviceSunSpecModels
final List<SunSpecDeviceModelFinder.DeviceSunSpecModel> findDeviceSunSpecModels(ModbusDevice modbusDevice)
Each SunSpec device supports a different set of SunSpec Models. This function scans the actual device and reports the list of available models
- Parameters:
modbusDevice- The modbus device that needs to be scanned.- Returns:
The list of models that were found
-
findSunSpecDevice
final Pair<Address, SchemaDevice> findSunSpecDevice(ModbusDevice modbusDevice)
Create a SchemaDevice with the SunSpec header
- Parameters:
modbusDevice- The device to connect to- Returns:
A new instance of SchemaDevice with a single Block+Field for the header
-
-
-
-