Skip to content

Commit a62e02e

Browse files
authored
Merge pull request #189856 from JimacoMS4/update-dps-mqtt-1
Update CleanSession and policy name
2 parents 1b116bf + ec025e1 commit a62e02e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/iot-dps/iot-dps-mqtt-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If a device cannot use the device SDKs, it can still connect to the public devic
4444
* For the **Password** field, use a SAS token. The format of the SAS token is the same as for both the HTTPS and AMQP protocols:
4545

4646
`SharedAccessSignature sr={URL-encoded-resourceURI}&sig={signature-string}&se={expiry}&skn=registration`
47-
The resourceURI should be in the format `{idScope}/registrations/{registration_id}`. The policy name (`skn`) is optional; if it's included, it should be set to `registration`.
47+
The resourceURI should be in the format `{idScope}/registrations/{registration_id}`. The policy name (`skn`) should be set to `registration`.
4848

4949
> [!NOTE]
5050
> If you use X.509 certificate authentication, SAS token passwords are not required.
@@ -53,7 +53,7 @@ If a device cannot use the device SDKs, it can still connect to the public devic
5353

5454
The following is a list of DPS implementation-specific behaviors:
5555

56-
* DPS doesn't support persistent sessions. It treats every session as non-persistent, regardless of the value of the **CleanSession** flag.
56+
* DPS doesn't support persistent sessions. It treats every session as non-persistent, regardless of the value of the **CleanSession** flag. We recommend setting **CleanSession** to true.
5757

5858
* When a device app subscribes to a topic with **QoS 2**, DPS grants maximum QoS level 1 in the **SUBACK** packet. After that, DPS delivers messages to the device using QoS 1.
5959

0 commit comments

Comments
 (0)