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

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

public ble_cmd_attributes_read ( int handle, int offset ) : ble_msg_attributes_read_rsp_t
handle int
offset int
Результат ble_msg_attributes_read_rsp_t
        public ble_msg_attributes_read_rsp_t ble_cmd_attributes_read(int handle, int offset)
        {
            log("ble_cmd_attributes_read_id");
            byte[] _data = new byte[SIZE_HEADER + 0 + 2 + 2];
            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 + 2 + 2);
            _data[idx++] = (byte)ble_classes.ble_cls_attributes;
            _data[idx++] = (byte)ble_command_ids.ble_cmd_attributes_read_id;
            // data
            _data[idx++] = (byte)handle;
            _data[idx++] = (byte)(handle >> 8);
            _data[idx++] = (byte)offset;
            _data[idx++] = (byte)(offset >> 8);
            // send
            BgApiResponse response = Send(new BgApiCommand() { Data = _data }, false);
            return (ble_msg_attributes_read_rsp_t)response;
        }
BgApi