Ejemplo n.º 1
0
        public bool SetTimeScales(Controller controller, TimeScaleNum tsNum)
        {
            WGPacket packet = new WGPacket(0x88);

            packet.SetDevSn(controller.sn);
            packet.SetTimeScale(tsNum);
            DoSend(packet, controller.ip, controller.port);
            List <WGPacket> packets = WGRecievePacketAddClose(1);

            if (packets.Count == 1)
            {
                return(packets[0].data[0] == 1);
            }
            return(false);
        }