-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
The esp_local_ctrl example doesn't work (IDFGH-13814) #14666
Comments
Did you try to change esp32 example to match certificate name '.local'? |
@chegewara I did also that. It still can't resolve the DNS for some reason.
|
I think it's probably not the issue with example, thus using ".local" domain is not best choice. https://askubuntu.com/questions/1068131/ubuntu-18-04-local-domain-dns-lookup-not-working Please try this solution
|
That doesn't work for me unfortunately. |
@chegewara I will try various changes in Ubuntu. For a start, should this line be changed in the application ?:
to
|
In theory yes. |
Hello, @pavel808, thanks for the report! I tested the example on a MacOS device and it seems to resolve the
Please help try out the fix discussed here and let me know if this addresses the issue on your side. Thanks! |
Answers checklist.
General issue report
I have build the
esp_local_ctrl
example and flashed it to an ESP32-C3 device (on an ESP Thread Border Router). It connects to my local Wi-Fi. The HTTP server starts to listen on port 443.Now this is where the problem is. The instructions provided in the
esp_local_ctrl/README.md
.It states to first
ping my_esp_ctrl_device.local
.The DNS cannot be resolved.
But if I do
ping my_esp_ctrl_device
, this pings ok. It makes sense from looking at the service name in theapp_main.cpp
it is justmy_esp_ctrl_device
Connection fails on trying to run the following command :
python scripts/esp_local_ctrl.py --sec_ver 2 --sec2_username localctrl --sec2_pwd abcd1234
However, if I remove the .local extension from line 38 of the
esp_local_ctrl.py,
so that the service name is justmy_esp_ctrl_device
, on connecting, I then get the following errors from the script :And from the device :
Please help:)
The text was updated successfully, but these errors were encountered: