Skip to main content

IoT gateway

Project description

IoT Gateway

IoT gateway is a device that connects its client devices to a IoT platforms.

@startditaa                                        
+--------+        +---------+    I2     +----------+
|        |   I1   |         +<----------+   IoT    |
| Device +<------>+ Gateway +   Bridge  | Platform | 
|        |        |         |---------->|          |
+--------+        +---------+ telemetry +----------+
                                state
@endditaa

Interface I1

Interface between Device and Gateway

Protocol: MQTT

Mqtt topics:

  • Attach
  • Unattach
  • State
  • Event
  • Config
  • Commands

Attach topic

  • Topic name: /attach
  • Payload: device id as string
  • Source: device

Unattach topic

  • Topic name: /unattach
  • Payload: device id as string
  • Source: device

State topic

  • Topic name: /state/<device_id>
  • Payload: device state
  • Source: device

Event topic

  • Topic name: /event/<device_id>
  • Payload: an event
  • Source: device

Config topic

  • Topic name: /config/<device_id>
  • Payload: configuration
  • Source: gateway

Commands topic

  • Topic name: /commands/<device_id>
  • Payload: command
  • Source: gateway

Interface I2

Interface between Gateway and Bridge

Protocol: MQTT

Event topic

  • Topic name: /devices/<device_id>/events
  • Payload: event
  • Source: gateway

State topic

  • Topic name: /devices/<device_id>/state
  • Payload: state
  • Source: gateway

Config topic

  • Topic name: /devices/<device_id>/config
  • Payload: configuration
  • Source: IoT platform

Commands topic

  • Topic name: /devices/<device_id>/commands/#
  • Payload: command
  • Source: IoT platform

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iot_gw-0.1.dev53-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file iot_gw-0.1.dev53-py3-none-any.whl.

File metadata

  • Download URL: iot_gw-0.1.dev53-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.0

File hashes

Hashes for iot_gw-0.1.dev53-py3-none-any.whl
Algorithm Hash digest
SHA256 665b3a3bfca416fb4a51080feb470a05be01be01e36ddf0faec45f2b6b5758d1
MD5 fc9a40699d862d0f7f2a200b21bdf049
BLAKE2b-256 3a2ab5743725cdeb49a235f1bf316392f27ba1aaccd98561a0f5cac01cb61b06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page