Skip to main content

Gateways

A gateway is a device that connects to Golioth and delivers data on behalf of one or more other devices. The peripheral devices must be able to send and receive valid pouch data, which the gateway proxies to and from the Golioth platform. Outside of acting as a proxy for other devices, gateway devices are identical to any other device on the Golioth platform and are able to make use of all device management, data streaming, and application services.

In order for a device to be able to act as a gateway, the Gateway Proxying setting must be enabled under Project Settings in the same project as the gateway device. This authorizes gateways to proxy data on behalf of other devices in the project, but does not allow the gateway to introspect the data content. All data that passes through gateways is encrypted end-to-end by default.

Gateways may connect to the Golioth platform using any supported protocol. Golioth currently offers a Bluetooth gateway reference implementation that includes examples for cellular and Wi-Fi / Ethernet connected gateway devices.

Linux Gateways​

For gateways that run Linux rather than microcontroller-based firmware, Canonical publishes Golioth Gateway as a snap in the Snap Store. The golioth-gateway snap acts as a Bluetooth LE central using the system BlueZ daemon, scanning for peripherals that advertise the pouch GATT service and proxying their data to and from the Golioth platform. As with any other gateway, the snap cannot introspect the data it forwards, and peripherals can roam between it and other gateways in the same project.

The snap can be installed on Ubuntu Server and Ubuntu Desktop, as well as on Ubuntu Core, where it may also be included in a custom image for deployment-ready gateway hardware.

sudo snap install golioth-gateway
note

The golioth-gateway snap requires BlueZ 5.65 or later and a Bluetooth LE capable adapter on the host system.

Follow the instructions in the README.md to configure the gateway and connect to Golioth.