policy element

Type:
Namespace: (default namespace)
XML Schema: policy_MQTTPublish_schema.xsd

Example XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <policy type="MQTTPublish"> <policyProperties> <description> <shortDesc>MQTTSample: policy for publishing messages to local host</shortDesc> <longDesc>Policy for publishing messages to hypertension alert topic</longDesc> </description> <basic> <clientId>HTAlert_pub</clientId> <topicName>HyperTension/Alert</topicName> <hostName>localhost</hostName> <port>1883</port> <qos>0</qos> </basic> </policyProperties> </policy>

Example JSON

{ "policyProperties": { "description": { "shortDesc": "MQTTSample: policy for publishing messages to local host", "longDesc": "Policy for publishing messages to hypertension alert topic" }, "basic": { "clientId": "HTAlert_pub", "topicName": "HyperTension/Alert", "hostName": "localhost", "port": "1883", "qos": "0" } }, "type": "MQTTPublish" }