SEND THE BLOODY REQUEST

This commit is contained in:
2026-01-02 21:03:12 +01:00
parent 14b21ad75d
commit 5d6e85d4b6

View File

@@ -1,3 +1,4 @@
import json
import os
import threading
@@ -33,7 +34,7 @@ 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=payload, verify=False)
response = requests.post(url, json=json.dumps(payload), verify=False)
print(response.json(), flush=True)
except Exception as e:
print(e)