This is my first post on here, so I apologize if I don’t include all of the required information. I am currently putting a Pycom FiPy on to the network. I have succeeded in connecting thanks to the help of this wonderful thread: https://forum.pycom.io/topic/3021/gpy-with-hologram-io-sim/97
I am currently stuck trying to figure out the required code to go from the working example code:
s = socket.socket() s = ssl.wrap_socket(s) s.connect(socket.getaddrinfo('www.google.com', 443)[-1]) s.send(b"GET / HTTP/1.0\r\n\r\n") print(s.recv(4096)) s.close()
To actually sending sensor data I am producing to the data engine/dashboard. This is my current code and it is throwing and error on the s.connect
s = socket.socket() s = ssl.wrap_socket(s) s.connect(socket.getaddrinfo('cloudsocket.hologram.io', 9999)[-1]) s.send(sensortemp2)
This is probably a fairly simple problem, so hopefully this should be resolved quickly. Thank you.