Skip to content

Commit d716bdc

Browse files
committed
added websocket protocol
1 parent 1352657 commit d716bdc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

articles/defender-for-iot/device-builders/tutorial-standalone-agent-binary-installation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,26 @@ This procedure describes additional steps required to support the AMQP protocol.
137137
sudo systemctl restart defender-iot-micro-agent.service
138138
```
139139

140+
**To add AMQP over web socket protocol support**:
141+
142+
1. On your micro-agent machine, open the `/etc/defender_iot_micro_agent/conf.json` file and add the following content:
143+
144+
```json
145+
{
146+
"IothubModule_TransportProtocol": "AMQP_WebSocket_Protocol"
147+
}
148+
```
149+
1. Delete any cached file at **/var/lib/defender_iot_micro_agent/cache.json**.
150+
151+
1. Restart the micro-agent. Run
152+
153+
```bash
154+
sudo systemctl restart defender-iot-micro-agent.service
155+
```
156+
157+
The agent will use this protocol, and communicate with the IoT Hub on port 443.
158+
Http Proxy configuration is supported for this protocol, in the case that proxy is also configured, the port of communication with the proxy will be as defined in the proxy configuration.
159+
140160
## Authenticate the micro agent
141161

142162
There are two options that can be used to authenticate the Defender for IoT micro agent:

0 commit comments

Comments
 (0)