Provisioning IoT Gateway

In this section, let us discuss about provisioning the Gateway by using Live Demo instance. To connect IoT Gateway to Thingsboard server, gateway credentials are required. Let us consider access token credentials for simple and better understanding. To provision the gateway, perform the following:

Change gateway. security. accessToken property to newly created device token that was copied during IoT gateway provisioning. The tb-gateway.yml file configuration setup looks similar to the below diagram:

On completing edit, save the file and close it.

Launching IoT Gateway

To launch IoT Gateway, perform the following:

Open the administrator command prompt.

Execute the below command to start the tb-gateway process:

net start tb-gateway

Note: To stop or restart the tb-gateway process, use the below commands:

Ensure that values of all the keys are 0 as shown in the below diagram to confirm successful connection of IoT gateway with Thingsboard server.

Conclusion

In this blog, we discussed about installing and configuring Thingsboard IoT gateway with proper commands. In our next blog, let us discuss about connecting IoT gateway extension with external communication protocol broker, and mapping JSON with custom protocol message mappers and so on.