Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket error #41

Open
riksarchen opened this issue Sep 14, 2019 · 6 comments
Open

Socket error #41

riksarchen opened this issue Sep 14, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@riksarchen
Copy link
Contributor

MQTT connects and then disconnects within a second.

1568413360: New client connected from 192.168.1.251 as EspSparsnasGatewayV2 (p2, c1, k30, u'hidden').
1568413360: Socket error on client EspSparsnasGatewayV2, disconnecting.

Worked fine with old version.

Hardware i use is a nodemcu esp8266, same as the one described in the guide.

@bphermansson
Copy link
Owner

Tried to checkout and use the v1_original branch?
Do you use Mosquitto as broker software? If you do, try running it from the command line with the -d parameter.

@riksarchen
Copy link
Contributor Author

Tried v1. It does not seems to even try MQTT connection. I also tried -d and -v to see log.

V1 does not connect at all, v2 connect and CONNACK is sent but then it's disconnected with Socket error.

I'll try to swap the Amico ESP8266 to a wemos d1 mini.

@riksarchen
Copy link
Contributor Author

Tried with wemos D1 mini also now but still gets socket error as soon as it connects.

@bphermansson
Copy link
Owner

Got this too now, with a circuit that's been working good before. Calls for further investigation.

sudo cat /var/log/mosquitto/mosquitto.log
1570009721: New connection from 192.168.1.235 on port 1883.
1570009721: New client connected from 192.168.1.235 as mosqsub|18035-PatrikAth (c1, k60, u'emonpi').
1570009785: Socket error on client mosqsub|18035-PatrikAth, disconnecting.

@bphermansson bphermansson added the bug Something isn't working label Oct 2, 2019
@sparvalarva
Copy link

Got the same problem.

@bphermansson
Copy link
Owner

@riksarchen, you don't have this problem with your pubsub-version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants