Created
June 22, 2021 02:16
-
-
Save Ajak58a/23ad46706a43daabfa510234c3f974f9 to your computer and use it in GitHub Desktop.
Devices.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#MQTT details | |
#Details for command_control file | |
topic_sub = "FromDevice" | |
topic_pub = "ToDevice" | |
broker = "broker.hivemq.com" | |
port = 1883 | |
#details For dashbaord | |
#Topics | |
sensor_val = "" | |
status = "" | |
result = "" | |
data = "" | |
#Devices details | |
total_number_of_devices = 5 | |
device_1 = "Device_1" | |
device_2 = "Device_2" | |
device_3 = "Device_3" | |
device_4 = "Device_4" | |
device_5 = "Device_5" | |
device_1_live = "" | |
device_2_live = "" | |
device_3_live = "" | |
device_4_live = "" | |
device_5_live = "" | |
device_1_debug = "" | |
device_2_debug = "" | |
device_3_debug = "" | |
device_4_debug = "" | |
device_5_debug = "" | |
device_1_sensor = "" | |
device_2_sensor = "" | |
device_3_sensor = "" | |
device_4_sensor = "" | |
device_5_sensor = "" | |
devices_names_live = [device_1_live,device_2_live] | |
devices_names_debug = [device_1_debug,device_2_debug] | |
devices_names_sensor = [device_1_sensor,device_2_sensor] | |
devices_names = [device_1,device_2] | |
#Topics for device | |
#Data Related | |
database_file = "database.txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment