R
R
rocknow2018-01-03 17:28:18
Internet of Things
rocknow, 2018-01-03 17:28:18

Why doesn't socket.getaddrinfo work in micropython (esp8266) but does in python string?

This code does not work on esp8266, but works in normal python:

>>> addr = socket.getaddrinfo('smart-socket-bdcc5.firebaseio.com', 443)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: -2

That being said, other variations of socket.getaddrinfo work, for examplesocket.getaddrinfo("towel.blinkenlights.nl", 23)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rocknow, 2018-01-04
@rocknow

The reason was simple: wrong wifi password

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question