mirror of
https://github.com/markqvist/Sideband.git
synced 2025-04-14 21:03:04 -04:00
Port handling
This commit is contained in:
parent
23e0e2394e
commit
4f201c5615
@ -58,6 +58,11 @@ class MQTT():
|
||||
self.is_connected = False
|
||||
|
||||
def set_server(self, host, port):
|
||||
try:
|
||||
port = int(port)
|
||||
except:
|
||||
port = None
|
||||
|
||||
self.host = host
|
||||
self.port = port or 1883
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user