Search found 8 matches

by AgentSmithers
Thu Feb 23, 2017 6:38 pm
Forum: ESP8266 boards
Topic: TCP Socket Closes due to Small buffer
Replies: 3
Views: 3206

Re: TCP Socket Closes due to Small buffer

Hi; I know that I am not really answering your question, but I always use 1024 bytes in the receiving buffer: while True: conn, addr = self.sock.accept() raw = conn.recv(1024).decode('UTF-8') if not raw: print('Null Request.',addr) self.close(conn) else: self.request(conn,raw) Thank you for the rep...
by AgentSmithers
Wed Feb 22, 2017 9:43 pm
Forum: ESP8266 boards
Topic: TCP Socket Closes due to Small buffer
Replies: 3
Views: 3206

Re: TCP Socket Closes due to Small buffer

Hi everyone,
I just wanted to check in and see if there was any more additional information I could provide to help troubleshoot this issue?
by AgentSmithers
Wed Feb 22, 2017 4:22 am
Forum: ESP8266 boards
Topic: TCP Socket Closes due to Small buffer
Replies: 3
Views: 3206

TCP Socket Closes due to Small buffer

Hi everyone, I am not sure if this is a bug or if I am just not doing something correctly. I am hosting a HTTP Webserver and I use Recv to get the first 128 bytes, the HTTP request itself is about 500+ bytes but I don't need it. I find that if I do not set my buffer to 768bytes to receive the full p...
by AgentSmithers
Sun Feb 19, 2017 8:33 am
Forum: General Discussion and Questions
Topic: RegEx with literal '='
Replies: 2
Views: 2520

Re: RegEx with literal '='

Darn, Thank you for the reply sir!
by AgentSmithers
Sun Feb 19, 2017 2:20 am
Forum: General Discussion and Questions
Topic: RegEx with literal '='
Replies: 2
Views: 2520

RegEx with literal '='

Hi Everyone, In URE, Does anyone know how to escape the '=' in the regEx? I cant seem to isolate the GET var's without looking for the '=' in the middle. Thank you!! import ure MyString = "GET http://test.ing/test.html?Test=Value&another=one&here=two HTTP/1.1" reg = ure.match("([A-Z]+)", MyString) v...
by AgentSmithers
Fri Feb 17, 2017 11:05 pm
Forum: General Discussion and Questions
Topic: Handle UDP and TCP request (ESP8266)
Replies: 0
Views: 2537

Handle UDP and TCP request (ESP8266)

Hi Everyone, I have managed to successfully program a DNS server on my ESP8266 using MicroPython, However I am now trying to Handle TCP HTTP request. From my Reading it appears uasyncio is perhaps the answer but from what I gather it does not work on the ESP8266 and the UDP DNS Receive appears to bl...
by AgentSmithers
Fri Feb 17, 2017 11:01 pm
Forum: General Discussion and Questions
Topic: Second set of eyes - Reflect back UDP Packet
Replies: 1
Views: 1790

Re: Second set of eyes - Reflect back UDP Packet

Everyone, I got it. It appeared to be an issue with my indentation. I appreciate the views.
Sorry about taking up a post.
by AgentSmithers
Fri Feb 17, 2017 6:26 pm
Forum: General Discussion and Questions
Topic: Second set of eyes - Reflect back UDP Packet
Replies: 1
Views: 1790

Second set of eyes - Reflect back UDP Packet

Hi Everyone, I am trying to just bounce a UDP packet from its source. I launched wireshark but I do not see it flying back with the destination address pointing back to the sender. Am I missing a piece of Logic here? -Agent [code]import array, network, ubinascii, socket ap_if = network.WLAN(network....