Search found 3 matches

by Stefan72
Mon May 18, 2020 7:16 am
Forum: ESP8266 boards
Topic: Problem with Newline if i sending textfiles with udp-socket
Replies: 5
Views: 3192

Re: Problem with Newline if i sending textfiles with udp-socket

Hello dhylands, i know what you say. And #13#10 is the same as $0d$0a and the same as \r\n ! But if i write the received Data to a File, which came with $0d$0a from the original source file, micropython change this to \r\n\. If i open the source file with a Texteditor it looks like.... Hello, this i...
by Stefan72
Sun May 17, 2020 10:02 pm
Forum: ESP8266 boards
Topic: Problem with Newline if i sending textfiles with udp-socket
Replies: 5
Views: 3192

Re: Problem with Newline if i sending textfiles with udp-socket

@Christian You are absolutly right. I removed the 'b from the Output because i was thinking it has nothing to do with my problem. I didn't know what it means. :oops: @SpotlightKid I am opening the File in binary-mode TempFile = open('sysupdate.tmp', 'wb') i am writing with TempFile.write(buffer) buf...
by Stefan72
Sun May 17, 2020 12:10 pm
Forum: ESP8266 boards
Topic: Problem with Newline if i sending textfiles with udp-socket
Replies: 5
Views: 3192

Problem with Newline if i sending textfiles with udp-socket

Hello, 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 s_udp = socket.socket(socke...