PLEASEEEE
This commit is contained in:
@@ -34,7 +34,8 @@ def handle_message_received(topic:str, payload:str):
|
||||
try :
|
||||
print(payload, flush=True)
|
||||
url = "https://192.168.15.125:1880/message/receive"
|
||||
response = requests.post(url, json=json.dumps(payload), verify=False)
|
||||
|
||||
response = requests.post(url, json=json.dumps({"payload" : payload}), verify=False)
|
||||
print(response.json(), flush=True)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
Reference in New Issue
Block a user