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

wrong hostname used #82

Open
Urs-Eppenberger opened this issue Aug 16, 2017 · 0 comments
Open

wrong hostname used #82

Urs-Eppenberger opened this issue Aug 16, 2017 · 0 comments

Comments

@Urs-Eppenberger
Copy link

Urs-Eppenberger commented Aug 16, 2017

Hello
I'm using your library since I need the SSL encryption and the authentication in my environment.
My code works mostly fine. But after a day or two I start to see strange entries in the MQTT broker log (mosquitto on Raspberry Pi).

Here is the correct entry:
1502516513: New connection from 192.168.11.80 on port 8883.
1502516513: New client connected from 192.168.11.80 as sonoffth1 (c1, k15, u'mqtt').

I have unreliable WiFi, therefore it is quite usual that the son off device looses the connection, then runs the recovery code to reconnect. But very rarely the hostname is corrupt:
1502521762: New connection from 192.168.11.80 on port 8883.
1502521762: New client connected from 192.168.11.80 as y (c1, k15).

I have no clue where the hostname 'y' comes from. I have attached the whole code of my sketch below for your reference. Maybe I'm doing something stupid, or maybe there is some glitch in the library.

Kind regards,
Urs Eppenberger
Sonoff_Generic_v1i_2.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant