Example #1
0
        //
        // Buttons Actions
        //

        private void Btn_OnOff_Click(object sender, EventArgs e)
        {
            byte[] cmd = new byte[] { 0x56, 0x05, 0xA2, 0x00, 0x00 };

            cmd[3] = A2A.power_status ? (byte)0x00 : (byte)0x01;

            ProcessCOM.SendCommand(cmd);
        }