2023-08-23 16:21:11 +03:00
|
|
|
import space.kscience.gradle.Maturity
|
|
|
|
|
2023-05-03 11:05:54 +03:00
|
|
|
plugins {
|
|
|
|
id("space.kscience.gradle.jvm")
|
2023-05-27 19:49:25 +03:00
|
|
|
`maven-publish`
|
2023-05-03 11:05:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
description = """
|
|
|
|
A plugin for Controls-kt device server on top of modbus-rtu/modbus-tcp protocols
|
|
|
|
""".trimIndent()
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api(projects.controlsCore)
|
|
|
|
api("com.ghgande:j2mod:3.1.1")
|
|
|
|
}
|
2023-08-23 16:21:11 +03:00
|
|
|
|
|
|
|
readme{
|
|
|
|
maturity = Maturity.EXPERIMENTAL
|
|
|
|
|
|
|
|
feature("modbusRegistryMap", ref = "src/main/kotlin/space/kscience/controls/modbus/ModbusRegistryMap.kt"){
|
|
|
|
"""
|
|
|
|
Type-safe modbus registry map. Allows to define both single-register and multi-register entries (using DataForge IO).
|
|
|
|
Automatically checks consistency.
|
|
|
|
""".trimIndent()
|
|
|
|
}
|
|
|
|
|
|
|
|
feature("modbusProcessImage", ref = "src/main/kotlin/space/kscience/controls/modbus/DeviceProcessImage.kt"){
|
|
|
|
"""
|
|
|
|
Binding of slave (server) modbus device to Controls-kt device
|
|
|
|
""".trimIndent()
|
|
|
|
}
|
|
|
|
|
|
|
|
feature("modbusDevice", ref = "src/main/kotlin/space/kscience/controls/modbus/ModbusDevice.kt"){
|
|
|
|
"""
|
|
|
|
A device with additional methods to work with modbus registers.
|
|
|
|
""".trimIndent()
|
|
|
|
}
|
|
|
|
}
|