Skip to content

East196/ThingsBoard-Platform-Protocol-Test-Tool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, shiyaz61@gmail.com

Licence & Copyright

© 2019 Shiyaz T

Licenced under the GPL-3.0 Licence

About

Through this application user can able to test their Thingsboard IoT Platform instance through CoAP, MQTT & HTTP Protocols with Test data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%