Search found 4 matches

by hsmade
Sat Jan 14, 2017 2:27 pm
Forum: ESP8266 boards
Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
Replies: 19
Views: 7975

Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?

Well, in object oriented programming (ie. using classes), it makes perfect sense to have more sockets open to one endpoint. For example, when having multiple sensors that have their own class. I can't reproduce this issue all the time though, so there must be something else contributing or causing t...
by hsmade
Fri Jan 13, 2017 8:07 am
Forum: ESP8266 boards
Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
Replies: 19
Views: 7975

Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?

Ok, so this is indeed a problem with the socket implementation: >>> import socket >>> sock = socket.socket() >>> addr = socket.getaddrinfo('192.168.178.35', 80)[0][-1] >>> sock.connect(addr) >>> sock.write('GET / HTTP/1.1\nHost: localhost\n\n') 32 >>> print(sock.read(10)) b'HTTP/1.1 2' >>> sock2 = s...
by hsmade
Fri Jan 13, 2017 7:53 am
Forum: ESP8266 boards
Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
Replies: 19
Views: 7975

Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?

I'm thinking that if it's a micropython related problem, it could be in socket.
I'm using mosquitto on raspberry pi. I will do a test with 2 simultaneously connected python clients on intel, to see if I can reproduce it on another platform as well.

-- Wim
by hsmade
Thu Jan 12, 2017 9:33 pm
Forum: ESP8266 boards
Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
Replies: 19
Views: 7975

Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?

I see the same issue. As soon as I establish 2 connections to my broker, with different IDs, I will get this error message. When I close one connection, it works.