package switchRelay type DataPack struct { Address string //地址码 Function byte //功能码 Way int //操作路数 Command int //控制指令 Crc uint16 //Crc校验码 } type MultiLoopDataPack struct { Address string //地址码 Function byte //功能码 TurnOff int //开关指令 State []int //回路状态 Command []byte //控制指令 Crc uint16 //Crc校验码 }