Interface ModbusNetwork

All Superinterfaces:
net.solarnetwork.service.Identifiable
All Known Implementing Classes:
AbstractModbusNetwork

public interface ModbusNetwork extends net.solarnetwork.service.Identifiable
High level Modbus API.

This API aims to simplify accessing Modbus capable devices without having any direct dependency on any specific Modbus implementation.

Since:
2.0
Version:
2.0
Author:
matt
  • Field Summary

    Fields inherited from interface net.solarnetwork.service.Identifiable

    GROUP_UID_PROPERTY, UID_PROPERTY
  • Method Summary

    Modifier and Type
    Method
    Description
    createConnection(int unitId)
    Create a connection to a specific Modbus device.
    <T> T
    performAction(int unitId, ModbusConnectionAction<T> action)
    Perform some action that requires a ModbusConnection, returning the result.

    Methods inherited from interface net.solarnetwork.service.Identifiable

    getDisplayName, getGroupUid, getUid