Oshan Ranasinghe

Work / Electronics / Embedded / IoT Edge Gateway

IoT · Edge Computing

IoT Edge Gateway

An MQTT-based edge gateway on Raspberry Pi that aggregates multi-sensor data, applies local filtering, handles reconnection, and publishes to a cloud broker with QoS guarantees.

Section

Electronics / Embedded

Stack

MQTT · Raspberry Pi · Python · Edge Computing

Category

IoT · Edge Computing

Status

Deployed in a test environment with three sensor nodes

01 — Challenge

The core engineering challenge

Forwarding raw sensor data to the cloud without local processing wastes bandwidth and creates cloud-side bottlenecks — edge filtering changes both the economics and the reliability profile.

03 — Decisions

Engineering decisions and what they cost

01Windowed average reduces outbound message volume by approximately 70% with no meaningful signal loss.
02Persistent MQTT sessions with QoS 1 ensure no readings are lost across short disconnects.
03Local REST API allows sensor configuration without requiring a cloud round-trip or SSH session.

04 — Stack

MQTTRaspberry PiPythonEdge ComputingIoTREST API