Code Monkey home page Code Monkey logo

thingsboard-platform-protocol-test-tool's Introduction

ThingsBoard-Platform-Protocol-Test-Tool

Using this application user can able to test CoAP, MQTT & HTTP Protocol with your ThingsBoard Instance. ThingsBoard supports following protocols for device connectivity:

  1. CoAP
  2. MQTT
  3. HTTP

MQTT :MQTT is a lightweight publish-subscribe messaging protocol which probably makes it the most suitable for various IoT devices. You can find more information about MQTT here.

CoAP: CoAP is a light-weight IoT protocol for constrained devices. CoAP protocol is UDP based, but similar to HTTP it uses request-response model. CoAP observes option allows to subscribe to resources and receive notifications on resource change. ThingsBoard server nodes act as a CoAP Server that supports both regular and observe requests.

HTTP:HTTP is a general-purpose network protocol that can be used in IoT applications.

Upload Test Data Type:

Json File Format: By default, ThingsBoard supports key-value content in JSON. Key is always a string, while value can be either string, boolean, double or long. example:

{"key1":"value1", "key2":"value2"}

Application Overview:

alt text

  1. URL Field : Enter your Platform instance URL
  2. Access Token Field : Enter your Device Access Token
  3. Protocol Selector : Select the Protocol type , CoAP / HTTP / MQTT
  4. Data Type : Select Data Type, Client Attributes/Telemetry Data
  5. Upload Button : Upload the Test data in JSON Format
  6. Send Button : Button send the Message to the your Platform Instance
  7. Log Window : Displays the log level message from the application to the user
  8. Progress Bar : Indicates the progress level.
  9. Cancel Button : Cancel the operation and resets the user entry fields.

Screenshots

CoAP Protocol:

alt text

MQTT Protocol:

alt text

HTTP Protocol:

alt text

ThingsBoard Demo Instance Latest Telemetry

alt text

Installation:

Ubuntu / Linuxmint / Debian:

  1. Install these packages:
sudo apt-get install build-essential

sudo apt-get install qt5-default

sudo apt-get install python3-pyqt5

sudo apt install pyqt5-dev-tools

sudo apt install python3-pip

sudo apt-get install python3-setuptools

pip3 install wheel

pip3 install paho-mqtt

sudo npm install coap-cli -g
  1. Clone this project
git clone https://github.com/shiyazt/ThingsBoard-Platform-Protocol-Tester.git

  1. In src folder Run the Python script
python3 ProtocolTester.pyc

#Tested and Worked on Ubuntu 18.04, Linuxmint 19.1 & Ubuntu 16.04

Contributors

Shiyaz T, [email protected]

Licence & Copyright

© 2019 Shiyaz T

Licenced under the GPL-3.0 Licence

thingsboard-platform-protocol-test-tool's People

Contributors

shiyazt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

thingsboard-platform-protocol-test-tool's Issues

Energy consumption

Hi, can we test the Energy consumption or data speed of the protocols, based of data they send on ThingsBoard ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.