Right now, those clients have the ip address of the pi hardcoded, which is less than ideal in case DHCP deciides to eat my lunch.
My laptop can resolve the pi's address using mDNS (raspberrypi.local), but I cannot achieve the same thing using micropython:
Code: Select all
>>> import socket
>>> print(socket.getaddrinfo('raspberrypi.local', 80))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: -2