Skip to content

A device simulator to not block development workflow on web-server part.

Notifications You must be signed in to change notification settings

StatikElektrik/ptai_device_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTAI Embedded Systems Simulator

This is a data simulator for the PTAI Embedded Systems project. It is designed to simulate the data that would be sent from the embedded system to the ThingsBoard server. It creates a function, and creates arbitrary data with specified error rates. It then sends the data to the ThingsBoard server.

Usage

~$ python3 main.py --function_type=[FUNCTION_TYPE] --error_rate=[ERROR_RATE] --frequency=[FREQUENCY] --duration=[DURATION]

Environmental Variables

Create a .env file in the root directory of the project. Not all the variables are required, but the ones that are not provided with environmental variables will need to be provided as command line arguments.

# IoT Platform Variables
THINGSBOARD_HOST="[HOST_COAP_URL_HERE]"
THINGSBOARD_PORT="[HOST_COAP_PORT_HERE]"

# Device Variables
DEVICE_MAC_ADDR="[MAC_ADDRESS_HERE]"
DEVICE_TOKEN="[DEVICE_TOKEN_HERE]"
DEVICE_PROVISION_KEY="[DEVICE_PROVISION_KEY_HERE]"
DEVICE_PROVISION_SECRET="[DEVICE_PROVISION_SECRET_HERE]"

About

A device simulator to not block development workflow on web-server part.

Topics

Resources

Stars

Watchers

Forks

Languages