i am new with MicroPython and i would like to convert my Script written in LUA to Micropython.
With this i would like to send a Text-File from my own Windows-Application to the ESP8266 and write them down to the Flash.
I open a socket and waiting for incomming Data
Code: Select all
s_udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s_udp.bind(("", 4005))
while True:
data, addr = s_udp.recvfrom(1024)
if Debug:
print("(Debug): received:", data, "from:", addr)
... do something with data ......
This is my Testfile
Code: Select all
Hello,
this is a testfile to show my Problem with Newline !
Best Regards
Code: Select all
(Debug): received: Hello,\r\n\r\nthis is a testfile to show my Problem with Newline !\r\n\r\nBest Regards\r\n' from ('192.168.1.10', 53963
Best Regards
Stefan