// TODO: delete this method // was guessing that this has to do with remote control channel, but doesn't look like it public Task <byte> GetChannelAsync() { ReadOnlyMemory <byte> message = new byte[] { 0x05, 0x00, 0x01, 0x0c, 0x05 }; var command = new Internal.Command <byte>(message, Internal.RequestTypes.Reply, r => { return(r[5]); }); return(connection.SendCommandAsync(command)); }
// TODO: delete this method public Task <ushort> GetUnknownAsync() { ReadOnlyMemory <byte> message = new byte[] { 0x05, 0x00, 0x01, 0x0a, 0x05 }; var command = new Internal.Command <ushort>(message, Internal.RequestTypes.Reply, r => { return(System.Buffers.Binary.BinaryPrimitives.ReadUInt16LittleEndian(r.Slice(5, 2))); }); return(connection.SendCommandAsync(command)); }