Skip to main content

Creating Gateways

This page explains how to create, configure, and manage gateways

Creating or editing a gateway

You can create a gateway or edit an existing one using console. After you create a gateway, you can't change it to a non-gateway device. Make sure you've created a registry and a device key pair before completing the steps in this section.

To create a new gateway:
  1. Go to the Registries page in console.
  2. Click the ID of the registry for the gateway.
  3. On the Registry details page, click Gateways, then click Add gateway to create a new gateway.
  4. Enter a Gateway ID that briefly describes the gateway or otherwise helps you identify it. (This field can't be edited later.) For information on gateway naming and size requirements, see Permitted characters and size requirements.
  5. For Gateway communication, select Allow or Block. This option allows you to block communication when needed, such as when a gateway or one or more devices bound to it are not functioning properly. In most cases, you'll want to allow communication when first creating the gateway. When a gateway is blocked, all devices bound to it are also blocked from communicating with OmniCore.
  6. Select the Public key format that matches the key pair for this gateway. Paste the certificate or key in the Public key value field. You can also set an expiration date for the key.
  7. Select the authentication method to use for devices bound to the gateway.
  8. Use the Key and Value fields to add optional gateway metadata, such as a serial number. For information on metadata key-value naming and size requirements, see Permitted characters and size requirements.
  9. Under Logging, select an activity log level for the gateway. The gateway's log level overrides its registry's log level.
  10. Click Create to create the gateway or Update to save changes to an existing gateway.

To edit an existing gateway:

  1. Go to the Registries page in console.
  2. Click the ID of the registry for the gateway.
  3. Click Registry details.
  4. Click Gateways.
  5. Click the ID of the gateway you want to edit.
  6. Click Edit at the top of the page.

To add a key to an existing gateway, click Add public key on the Device details page.

To learn how to create the devices you'll use with the gateway, see Creating or editing a device.

Configuring the gateway and getting state

With OmniCore, you can control a gateway by modifying its configuration, just as you would with any other device. See Configuring Devices to learn how to configure a gateway over the MQTT or HTTP bridge.

After a configuration has been applied to a gateway, the gateway can report its state to OmniCore. You can compare the gateway's state and its most recent configuration to make sure the gateway is doing what it's supposed to be doing.

Binding or unbinding a device

You can authenticate non-gateway devices to OmniCore by binding them to the gateway. Binding creates an association between the devices and the gateway that OmniCore checks to authenticate the devices.

note

Binding is required when using the HTTP bridge.

  1. Go to the Registries page in console.
  2. Click the ID of the registry for the gateway.
  3. Click Gateways, then click the gateway's ID.
  4. On the Gateway details page, click Bound devices.
  5. Click Bind device.
  6. Select the devices you want to bind to the gateway, then click Bind.
  7. To unbind a device, select the device in the Gateway details page and click Unbind device, then click Unbind again to confirm.

Listing all devices bound to a gateway

  1. Go to the Registries page in console.
  2. Click the ID of the registry for the gateway.
  3. Click Gateways, then click the gateway's ID.
  4. On the Gateway details page, click Bound devices.

Listing all gateways in a registry

  1. Go to the Registries page in console.
  2. Click the ID of the registry for the gateway.
  3. On the Registry details page, click Gateways to see a list of all gateways in that registry.

Deleting devices bound to a gateway

To delete a device bound to a gateway, you first unbind the device from all gateways it's bound to, then delete the device from the registry. Delete a Device

  1. Unbind the device from every gateway it's bound to.
  2. In the Device details page, click Delete.
  3. Enter the device ID to confirm and click Delete.

Deleting a gateway

To delete a gateway, you first unbind its devices then delete the gateway from the registry. Delete a Gateway

  1. Unbind all devices from the gateway.
  2. Go back to the Gateway details page and click Delete.
  3. Enter the gateway's name to confirm, then click Delete.