mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-05 21:58:22 +08:00
25 lines
526 B
Plaintext
25 lines
526 B
Plaintext
{mapping, "modbus.ip", "dgiot_modbus.ip", [
|
|
{default, "127.0.0.1"},
|
|
{datatype, [ip, string]}
|
|
]}.
|
|
|
|
{mapping, "modbus.port", "dgiot_modbus.port", [
|
|
{default, 502},
|
|
{datatype, integer}
|
|
]}.
|
|
|
|
{mapping, "modbus.protocol", "dgiot_modbus.protocol", [
|
|
{default, "tcp"},
|
|
{datatype, string}
|
|
]}.
|
|
|
|
{mapping, "modbus.unit_id", "dgiot_modbus.unit_id", [
|
|
{default, 255},
|
|
{datatype, integer}
|
|
]}.
|
|
|
|
{mapping, "modbus.callback", "dgiot_modbus.modbus_demo_callback", [
|
|
{default, "modbus_demo_callback"},
|
|
{datatype, string}
|
|
]}.
|