public void Serialize_Full_MqttPingReqPacket_V311() { var pingReqPacket = new MqttPingReqPacket(); var deserialized = MqttPacketSerializationHelper.EncodeAndDecodePacket(pingReqPacket, MqttProtocolVersion.V311); Assert.IsNotNull(deserialized); }
private static byte Serialize(MqttPingReqPacket packet, MqttPacketWriter writer) { return(SerializeEmptyPacketAsync(MqttControlPacketType.PingReq, writer)); }
private Task SerializeAsync(MqttPingReqPacket packet, IMqttCommunicationChannel destination) { return(SerializeEmptyPacketAsync(MqttControlPacketType.PingReq, destination)); }