Use the Manage Topic to Stop a Device
3 min
Notes:
- When publishing structured data such as JSON, you must convert to a byte array (string) first. To do this in a flow, you can use the json node.
The Manage topic allows you to control the status of a DeviceHub device.
Video
User Scenario
You'd like to remotely disconnect a PLC from Litmus Edge.
Set Up and Use the Manage Topic
To set up and use the Manage topic:
- Follow the steps to Connect a Device. For this user scenario, a Simulator Generator device is used.
- Navigate to DeviceHub.
- Navigate to Flows Manager.
- Double-click the DataHub Publish node.
- In the Topic field, paste the Manage topic you copied in step 3.
- If needed, configure the Datahub Publish connection. See the Step 3: Configure Connector Nodes section in Create a Flow to learn more.
- Click Done.
- Double-click the inject node. The Edit inject node dialog box displays.
- Click Done, and then click Deploy.
To restart the device, you can use the following command: {"command" : "start"}.






