Пример #1
0
        //固件升级
        private void FirmwareUpdata_InSetup(Object sender, EventArgs e)
        {
            Modbus.MBConfig(0xFA, 9600);
            Modbus.MBAddCmd(0x1000, 0x03);
            BLECode.GetIntance.Write(Modbus.WBuff);

            if (!_setupRepository.ReadChipId())
            {
                _setupForm.ShowToast_InSetup("提示", "请检查蓝牙设备是否打开", 2);
                _setupForm.SetButtonUp(true);
                return;
            }
        }