BgApiDriver.BgApi.ble_cmd_attclient_find_by_type_value C# (CSharp) Метод

ble_cmd_attclient_find_by_type_value() публичный Метод

public ble_cmd_attclient_find_by_type_value ( int connection, int start, int end, int uuid, byte value ) : ble_msg_attclient_find_by_type_value_rsp_t
connection int
start int
end int
uuid int
value byte
Результат ble_msg_attclient_find_by_type_value_rsp_t
        public ble_msg_attclient_find_by_type_value_rsp_t ble_cmd_attclient_find_by_type_value(int connection, int start, int end, int uuid, byte[] value)
        {
            log("ble_cmd_attclient_find_by_type_value_id");
            byte[] _data = new byte[SIZE_HEADER + 0 + 1 + 2 + 2 + 2 + 1 + value.Length];
            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 + 2 + 2 + 2 + 1 + value.Length);
            _data[idx++] = (byte)ble_classes.ble_cls_attclient;
            _data[idx++] = (byte)ble_command_ids.ble_cmd_attclient_find_by_type_value_id;
            // data
            _data[idx++] = (byte)connection;
            _data[idx++] = (byte)start;
            _data[idx++] = (byte)(start >> 8);
            _data[idx++] = (byte)end;
            _data[idx++] = (byte)(end >> 8);
            _data[idx++] = (byte)uuid;
            _data[idx++] = (byte)(uuid >> 8);
            _data[idx++] = (byte)(value.Length);
            for(int i = 0; i < value.Length; i++)
            {
                _data[idx++] = value[i];
            }
            // send
            BgApiResponse response = Send(new BgApiCommand() { Data = _data }, false);
            return (ble_msg_attclient_find_by_type_value_rsp_t)response;
        }
BgApi