curl --verbose --request POST -H "Authorization: Basic base64(username:password)" http://mqtt.cloud.tencent.com/keep-alive?client-id=${client-id}&interval=${seconds}
Authorization: Basic <credentials><credentials> = username:password in Base64 encoding.username is used for ACL authorization.Parameter Name | Required | Type | Description |
client-id | Yes | String | Client ID |
interval | Yes | Integer | New Keep Alive time, ranging from 30 to 1200 (unit: seconds) |
Parameter Name | Type | Description |
success | Boolean | Request processing result. true indicates success. |
keepalive | Integer | Keep Alive time after modification, in seconds. |
curl --request POST \\--header "Authorization: Basic c2Vpcm9saTIyMjo5NEZWUmpTejBOR0dXVmFU" \\"http://mqtt.cloud.tencent.com/keep-alive?client-id=curl-x&interval=120"
curl --tlsv1.2 \\--cacert CA.crt \\--cert client.chain.crt \\--key client.pkcs8.key \\--verbose \\--request POST \\"https://mqtt.cloud.tencent.com/keep-alive?client-id=curl-x&interval=120"
{"success": true,"keepalive": 120}
HTTP Status Code | Description |
200 | Request successful. |
401 | Authentication failed. Invalid username or password. |
403 | Authorization failed. The account lacks CONNECT permission. |
429 | Flow control, with too many requests. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan