IoT Device Gateway


Description

마스터보드가 이더넷 통신을 할 수 있도록 패킷을 교환하는 게이트웨이. 시리얼 통신 패킷과 MQTT 패킷을 변환.

Environment


Target Machine

Build Machine

  • x86_64 Architecture
  • Ubuntu 20.04
  • C++ 20
  • CMake 3.21

External Library

How to build


Install build tools

sudo apt-get update -y
sudo apt-get install -y build-essential

Install Mosquitto dev library

sudo apt-get update -y
sudo apt-get install -y libmosquitto-dev libmosquittopp-dev

Download from repository

git clone https://github.com/KGESH/hanium-iot-gateway.git

Go to download path

cd hanium-iot-gateway

CMake build with your IDE

Build to target machine

How to run


1. Check your MQTT message broker

2. Connect serial cable to master board

3. Execute binary sudo (serial port need sudo permission!)

sudo ./hanium_iot_gateway