internal override void WriteApiBytes(ByteWriter bw) { base.WriteApiBytes(bw); _address64.WriteBytes(bw); _address16.WriteBytes(bw); bw.Write(_broadcastRadius); bw.Write(_options); bw.Write(_value); }
internal override void WriteBytesCommand(ByteWriter bw) { _address64.WriteBytes(bw); _address16.WriteBytes(bw); bw.Write(_options); bw.Write(Command); if (Value != null) { bw.Write(Value); } }
internal override void WriteApiBytes(ByteWriter bw) { if (_value != null && _value.Length > 100) { throw new Exception("Value exceeds maximum of 100 bytes per packet."); } base.WriteApiBytes(bw); _address16.WriteBytes(bw); bw.Write(_options); bw.Write(_value); }