|
from func import *
|
|
from pymodbus.client import ModbusTcpClient
|
|
|
|
client = ModbusTcpClient(
|
|
host=MODBUS_SERVER_HOST,
|
|
port=MODBUS_SERVER_PORT,
|
|
)
|
|
client.connect()
|
|
# максимальное количество coils = 286
|
|
|
|
# bulb(0, client)
|
|
# get_coordinates()
|
|
get_or_set_speed(30, client)
|
|
|
|
client.close() |