Set up Remote Client to integrate your IoT Network

Set up Remote Client to integrate your IoT Network

October 9, 2020
TeamViewer IoT Documentation

The TeamViewer IoT Agent acts as a centralized hub bringing the TeamViewer IoT solution to your IoT network. To securely integrate your IoT devices and sensors, you must create trusted Clients (see TeamViewer IoT Agent MQTT API) which can communicate with the TeamViewer IoT Agent.

Remote Clients allows you to extend your clients to trusted remote devices rather than being limited to the localhost (the device hosting the agent).  The following procedure will illustrate how to enable Remote Clients and how to use the TeamViewer IoT Agent MQTT API to remotely create clients and send your sensor data for monitoring and visualization.

Caution: Enabling Remote Clients will allow any device on your local area network to initiate Client certificate generation. It is strongly encouraged to Disable Remote Client Provisioning & Remote Client Data connections when not in use.

What you will need

Make sure that you have prepared the following points:

Setup

  1. Access the edge device remotely (Access the Edge Device via Remote Terminal).
  2. Enable Remote Connections. In the terminal type in the following command and press return.
teamviewer-iot-agent enable remoteClientProvision
  1. From your Edge Device, create a client by generating a trusted certificate.
    • For more information see TeamViewer IoT Agent MQTT API.
    • Replace localhost with the hostname of the device running the TeamViewer IoT Agent in the publish/subscribe examples.
    • Copy the Trusted CA Cert TeamViewerAuthority.crt, referenced in the publish/subscribe examples, to the Edge Device.
  2. Once your Client has been created, disable the Remote Client Provisioning access to prevent unauthorized access from other hosts on the network.  Disabling Remote Client Provisioning only allows certificate based secure access from remote hosts. In the terminal type in the following command and press return.
teamviewer-iot-agent disable remoteClientProvision
  1. Enable remote data for clients to securely connect to the TeamViewer IoT Agent to send data. In the terminal type in the following command and press return.
teamviewer-iot-agent enable remoteData
  1. From your Edge Device, securely register metrics and push data to the TeamViewer IoT Agent.
    • For more information see TeamViewer IoT Agent MQTT API.
    • Replace localhost with the hostname of the device running the TeamViewer IoT Agent in the publish/subscribe examples.
  2. To provision additional remote clients enable the Remote Client Provisioning. In the terminal type in the following command and press return.
teamviewer-iot-agent enable remoteClientProvision

Disable Remote Client Provisioning

For security purposes, disable the Remote Client Provisioning access to prevent unauthorized access from other hosts on the network. Disabling Remote Client Provisioning only allows certificate based secure access from remote hosts.

  1. Access the edge device remotely (Access the Edge Device via Remote Terminal).
  2. In the terminal type in the following command and press return.
teamviewer-iot-agent disable remoteClientProvision

Disable Remote Data

For security purposes, when remote connections are no longer needed for Clients to send data, disable Remote Data.

  1. Access the edge device remotely (Access the Edge Device via Remote Terminal).
  2. In the terminal type in the following command and press return.
teamviewer-iot-agent disable remoteData

Disable Remote Clients

For security purposes, when remote connections are no longer needed for client provisioning or sending data, disable all Remote Connections.

  1. Access the edge device remotely (Access the Edge Device via Remote Terminal).
  2. In the terminal type in the following command and press return.
teamviewer-iot-agent disable remoteClients

Related posts

Want more? Exclusive deals, the latest news: Our Newsletter!