Setting Up Cloud Connect for RFID
22
Local Access via REST
To allow the Control interface to be accesses locally from the REST, enable enableLocalRest field in the
configuration.
"control": {
"commandResponse": {
"enableLocalRest": true,
}
}
Zebra Data Services
The reader is by default configured to connect the Control interface to the Zebra Data Services. When
configured to connect to the ZDS the JSON object for Control interface is as shown below.
"control": {
"commandResponse": {
"enableLocalRest": false,
"connections": [
{
"type": "mqtt-GCP",
"options": {
"endpoint": {
"hostName": "mqtt.googleapis.com",
"port": 443
},
"enableSecurity": true,
"security": {
"keyFormat": "PEM",
"keyAlgorithm": "RS256",
"CACertificateFileLocation":
"/readerconfig/ssl/certs/cloud-trusted-ca-certs.crt",
"publicKeyFileLocation": "/readerconfig/ssl/server.crt",
"privateKeyFileLocation": "/readerconfig/ssl/server.key"
},
"additional": {
"keepAlive": 60,
"cleanSession": true,
"debug": false,
"reconnectDelay": 1,
"reconnectDelayMax": 1,
"qos": 0,
"clientId":
"projects/es-s2-emc-p/locations/us-central1/registries/RFIDREADER-es-s2-emc-p/devices/<de
viceId>"
},
"publishTopic": ["/devices/<deviceId>/events/command-responses"],
"subscribeTopic": ["/devices/<deviceId>/commands/#"]
}
}
]
}
}