You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
414 B
Python
36 lines
414 B
Python
import json
|
|
|
|
import collections
|
|
import time
|
|
|
|
|
|
from protocol.ModBus.TCPMaster import TcpMaster
|
|
from utils.DBModels.DeviceModels import DeviceDB
|
|
|
|
# from utils.DBModels.ClientModels import DeviceDB
|
|
|
|
|
|
|
|
|
|
class Area():
|
|
startAddress = None
|
|
endAddress = None
|
|
bytes = None
|
|
type = None
|
|
addressList = []
|
|
order = 'ABCD'
|
|
nums = None
|
|
forceValue = 0
|
|
def __init__(self):
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|