Remove logging
parent
32afe1f5b9
commit
b384c2cec6
2
main.py
2
main.py
|
@ -10,7 +10,7 @@ logging.basicConfig(level=logging.DEBUG, format='[%(asctime)-15s] %(name)-10s %(
|
|||
|
||||
app = flask.Flask(__name__)
|
||||
app.config['DISABLE_GUI'] = True
|
||||
app.config['PORT'] = 5000
|
||||
app.config['PORT'] = 5100
|
||||
app.config['BROKER'] = ('mqtt.waw.hackerspace.pl', 1883)
|
||||
app.config['PREFIX'] = 'iot/'
|
||||
app.config['TEMPLATES_AUTO_RELOAD'] = True
|
||||
|
|
|
@ -43,7 +43,6 @@ class SpejsiotManager(mqtt.Client):
|
|||
def run(self, broker, port):
|
||||
self.connect(broker, port, 60)
|
||||
self.loop_start()
|
||||
print(self.on_connect)
|
||||
|
||||
def on_message(self, client, userdata, msg):
|
||||
try:
|
||||
|
@ -85,6 +84,3 @@ class SpejsiotManager(mqtt.Client):
|
|||
return False
|
||||
|
||||
return node.set(endpoint, prop, value)
|
||||
|
||||
def on_log(self, client, userdata, level, buf):
|
||||
self.logger.debug('[%r] %r', level, buf)
|
||||
|
|
Loading…
Reference in New Issue