소스 검색

Add connack properties to connect result.

release/3.x.x
Christian Kratky 5 년 전
부모
커밋
373fe8c72c
1개의 변경된 파일17개의 추가작업 그리고 1개의 파일을 삭제
  1. +17
    -1
      Source/MQTTnet/Formatter/V5/MqttV500DataConverter.cs

+ 17
- 1
Source/MQTTnet/Formatter/V5/MqttV500DataConverter.cs 파일 보기

@@ -82,7 +82,23 @@ namespace MQTTnet.Formatter.V5
return new MqttClientAuthenticateResult
{
IsSessionPresent = connAckPacket.IsSessionPresent,
ResultCode = (MqttClientConnectResultCode)connAckPacket.ReasonCode.Value
ResultCode = (MqttClientConnectResultCode)connAckPacket.ReasonCode.Value,
WildcardSubscriptionAvailable = connAckPacket.Properties?.WildcardSubscriptionAvailable,
RetainAvailable = connAckPacket.Properties?.RetainAvailable,
AssignedClientIdentifier = connAckPacket.Properties?.AssignedClientIdentifier,
AuthenticationMethod = connAckPacket.Properties?.AuthenticationMethod,
AuthenticationData = connAckPacket.Properties?.AuthenticationData,
MaximumPacketSize = connAckPacket.Properties?.MaximumPacketSize,
ReasonString = connAckPacket.Properties?.ReasonString,
ReceiveMaximum = connAckPacket.Properties?.ReceiveMaximum,
ResponseInformation = connAckPacket.Properties?.ResponseInformation,
TopicAliasMaximum = connAckPacket.Properties?.TopicAliasMaximum,
ServerReference = connAckPacket.Properties?.ServerReference,
ServerKeepAlive = connAckPacket.Properties?.ServerKeepAlive,
SessionExpiryInterval = connAckPacket.Properties?.SessionExpiryInterval,
SubscriptionIdentifiersAvailable = connAckPacket.Properties?.SubscriptionIdentifiersAvailable,
SharedSubscriptionAvailable = connAckPacket.Properties?.SharedSubscriptionAvailable,
UserProperties = connAckPacket.Properties?.UserProperties
};
}



불러오는 중...
취소
저장