Forgot one
This commit is contained in:
@@ -64,7 +64,6 @@ class MQTTService:
|
|||||||
|
|
||||||
def publish(self, topic: str, data: str, qos: int = 0):
|
def publish(self, topic: str, data: str, qos: int = 0):
|
||||||
try:
|
try:
|
||||||
print("Trying to publish...")
|
|
||||||
self.connect()
|
self.connect()
|
||||||
payload = {
|
payload = {
|
||||||
"timestamp": int(time.time()),
|
"timestamp": int(time.time()),
|
||||||
|
|||||||
Reference in New Issue
Block a user