Skip to content

Commit

Permalink
Change Client Name
Browse files Browse the repository at this point in the history
  • Loading branch information
SirGoodenough committed Dec 5, 2021
1 parent e3accda commit dc86990
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions furnace.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,8 @@ def mqttConnect():
mqttc.publish(CONFIG_TC5, json.dumps(payload_TC5config), 1, True)
mqttc.publish(CONFIG_TC6, json.dumps(payload_TC6config), 1, True)

# Type of sensor, can be Adafruit_DHT.DHT11, Adafruit_DHT.DHT22, or Adafruit_DHT.AM2302.
DHT_TYPE = Adafruit_DHT.AM2302

temp = 0.00
humidity = 0.00
temp = 0.0
humidity = 0.0
# set loop counter
count = 0
# Get the library for the thermocouples
Expand Down Expand Up @@ -503,10 +500,9 @@ def mqttConnect():
#Log Message to start
print('Logging {0} sensor measurements every {1} seconds.'.format(D_ID, LOOP))
print('Press Ctrl-C to quit.')
mqttc = mqtt.Client('python_pub', 'False', 'MQTTv311')
#mqttc.disable_logger() # Saves wear on SD card Memory. Remove as needed for troubleshooting
mqttc = mqtt.Client(D_ID, 'False', 'MQTTv311')
mqttc.disable_logger() # Saves wear on SD card Memory. Remove as needed for troubleshooting
mqttc.username_pw_set(USER, PWD) # deactivate if not needed
print('user -{0}- pwd -{1}-'.format(USER, PWD))
mqttConnect()

try:
Expand Down

0 comments on commit dc86990

Please sign in to comment.