Updated on 2022-08-11 GMT+08:00

Encryption Data Acquisition

This topic is used to subscribe to encryption data.

Topic

$hw/{project_id}/encryptdatas/{encryptdata_name}/properties/{properties_name}/plaintext

Parameter

Type

Description

project_id

String

Project ID. For details on how to obtain a project ID, see Obtaining a Project ID.

encryptdata_name

String

Name of an encryption data record.

properties_name

String

Key of an encryption item.

Usage

Use an MQTT client to subscribe to this topic. This topic must be used together with Encryption Data Request.

A certificate must be used for security authentication when encryption data is requested. For details about the authentication method, see Performing Security Authentication Using Certificate.

Parameter Description

Parameter

Type

Description

plain_text

String

Plaintext value of an encryption item.

ret_message

String

Error message.

Example

If the request is correct, the following message is received:

{
    "ret_code": 200,
    "plain_text": "xxxxxxxxxxx"
}

If the request is incorrect, the following message is received:

{
    "ret_code": 400,
    "ret_message": "xxxxxxxxxxx"
}