BgApiDriver.BgApi.ble_cmd_system_reset C# (CSharp) Method

ble_cmd_system_reset() public method

public ble_cmd_system_reset ( int boot_in_dfu ) : void
boot_in_dfu int
return void
        public void ble_cmd_system_reset(int boot_in_dfu)
        {
            log("ble_cmd_system_reset_id");
            byte[] _data = new byte[SIZE_HEADER + 0 + 1];
            int idx = 0;
            // header
            _data[idx++] = (byte)ble_dev_types.ble_dev_type_ble|(byte)ble_msg_types.ble_msg_type_cmd|0x0;
            _data[idx++] = (byte)(0 + 1);
            _data[idx++] = (byte)ble_classes.ble_cls_system;
            _data[idx++] = (byte)ble_command_ids.ble_cmd_system_reset_id;
            // data
            _data[idx++] = (byte)boot_in_dfu;
            // send
            Send(new BgApiCommand() { Data = _data }, true);
        }
BgApi