im Receiving the error when i try to run my coding.what should i do to solve this error?
ERROR:sleekxmpp.xmlstream.xmlstream:Could not connect to 104.198.88.230:5222. Socket Error #110: Connection timed out
Coding
from time import sleep
import mcp3008
from controlmypi import ControlMyPi
import logging
def on_msg(conn, key, value):
pass
logging.basicConfig(level=logging.INFO)
p = [
[ ['G','moist','level',0,0,1023] ],
]
conn = ControlMyPi('soilmoisturemonitoring@xmpp.jp', 'soilmoisturemonitoring123', 'moisture', 'Moisture monitor', p, on_msg)
if conn.start_control():
try:
while True:
m = mcp3008.readadc(5)
conn.update_status({'moist':m})
sleep(30)
finally:
conn.stop_control()