Skip to content

onem2m-iril1/middle_node_v_01

Repository files navigation

OneM2M Middle Node

MiddleNode in accordance with OneM2M provides the following functionalities

  • Security Association and Establishment
    • Certificate Based
    • Pre-Shared Key Based
  • Device Registration
  • Secure MQTT Binding
  • Container and Content Instance Resource Management
  • Subscription and Notification
  • Data Management and Repository
  • Device Management
  • Access Control Policies (Authorization)

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Run following command to install sqlite3 DB

$ sudo apt-get install libsqlite3-dev

Run the following command to install CMake package for Debian based system

$ sudo apt-get install build-essential gcc make cmake cmake-gui cmake-curses-gui

Install OpenSSL library package using the following command

$ sudo apt-get install libssl-dev

Run following command to install PAHO MQTT Client

$ git clone https://github.com/eclipse/paho.mqtt.c.git
$ cd paho.mqtt.c
$ git checkout v1.2.1
$ cmake -Bbuild -H. -DPAHO_WITH_SSL=ON
$ sudo cmake --build build/ --target install
$ sudo ldconfig

Configuration

Before Installation, configure the project to run using one of the following protocols

  • TCP
  • TLS over TCP using Certificate
  • TLS over TCP using Pre-Shared key

This can be done by commenting or uncommenting the macros defined in MQTT_func.h file

uncomment #define TLS for using TLS/TCP uncomment #define TLS_PSK or #define TLS_CERT for using PSK or Certificates during TLS Handshake

To connect with MQTT Broker change the ADDRESS macro to the URL of the MQTT Broker.

Installing

Build and run the program in current directory using following commands

$ cd Middle-Node_v01
$ cmake .
$ make
$ ./MiddleNode

System Architechture

Alt text

Authors

License

KICS UET

Team Members

Muhammad Ahsan Bilal Imran Asim Tanwir Muhammad Rehan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published