-
Notifications
You must be signed in to change notification settings - Fork 283
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
Beginner's 8266 Guide - mDNS #2
Comments
What OS are you using? Are your computer and the ESP on the same Wi-Fi network, or is there some network infrastructure in between, like a router? Pieter |
Pieter...thanks for response. I'm using Windows 7. Yes, my laptop and the 8266 are both connected to "linksys" wifi in the house w/o any other device in between. I reloaded it all today and I get the same results...Ping with the local IP address, Hello World and Toggle LED work fine that way, but again not when using esp8266.local. One other comment, my wifi does not use a password, so I commented or otherwise removed "password" from the code. |
I don't think W7 supports mDNS. Pieter |
You can try installing iTunes, it includes Apple Bonjour to resolve mDNS addresses. You can extract it from the iTunes installer if you only want Bonjour and not iTunes. https://superuser.com/questions/491747/how-can-i-resolve-local-addresses-in-windows |
Thanks Pieter. First I think I'll move over to my desktop that uses Windows 8.1 and see what happens. Don't know if this is relevant, but before my message yesterday and trying OTA, I had reflashed the AT firmware to the 8266. While commands such as AT, AT+RST, AT+GMR, AT+CWMODE, and AT+CWLAP worked fine, the command AT+CWJAP would not connect me to the available ssid indicated in CWLAP response. Also a W7 issue that Bonjour would resolve? |
Pieter...UPDATE...OK, set it all up on W8.1. connects to my wifi ssid 'linksys' OK and from CMD line, PING to IP works, but PING to esp8266.local does not work. John |
Windows 8.1 doesn't support mDNS either, I think you need W10, or you have to install a third-party mDNS responder, like Apple's Bonjour. By the way, I strongly suggest to put a password on your WiFi: a WiFi network without password is not encrypted. This means that anyone with a WiFi antenna can read all your network packets. If you have any network sharing service enabled (could be by accident, or by default) they could even access the files on your PC. Pieter |
Pieter..first, thank you for your continued interest in helping me resolve these issues. OK, installed Bonjour and whaddya know, the esp8266.local worked for the 'toggle LED' as well as the 'Hello world' examples. However, I am not able to get beyond the password request on the OTA example. When I close the password box, I receive the error: "Error while uploading: missing 'runtime.pwd.192.168.1.102' configuration parameter." Same with GPIO0 grounded or ungrounded during this. Now, putting that aside for a moment, with Bonjour loaded, I went back and re-flashed the AT firmware and I find that AT+CWJAP works and does join my linksys wifi! wahoo! But, it does require a placeholder for a password...so, AT+CWJAP="linksys","" and this works Lastly, for this post, thank you for your concern and the recommendation regarding wifi password security. I had considered that initially, but since we live on a large parcel of rural acreage where our closest neighbor is 1/2 mile distant I decided it was not necessary...our wifi is not detectable 100' outside the house. My ultimate goal with the 8266 is to be able to detect something in our barn with a PIR and send a text or email using the IFTTT method |
Glad to hear you got mDNS working! I've never used IFTTT, so I can't help you with that. Pieter |
Pieter, |
I think I manually installed Python on most of my Windows machines (for reasons other than Arduino), so maybe that's why it worked right out of the box for me. Pieter |
Thanks. BTW, I found this tutorial with a very clean code for sending an e-mail with the 8266...there is a Gsender.h library that removes a lot of the clutter from the .ino file. I modified it to work with a PIR sensor...just thought I'd pass it along: |
Thanks for the tip! You need Python 2.7 for OTA to work, on most Linux systems this is installed by default, and I have it installed on most of my Windows PCs as well, so I didn't notice it. Thank you for your feedback, |
Pieter,
Thank you for all your help. I'll look into the Python 2.7 and install it.
Thank you for spending a lot of time preparing a great tutorial. Cheers.
John
…On Sat, May 6, 2017 at 2:15 PM, tttapa ***@***.***> wrote:
Thanks for the tip!
You need Python 2.7 for OTA to work, on most Linux systems this is
installed by default, and I have it installed on most of my Windows PCs as
well, so I didn't notice it.
I'll add it to the guide.
Thank you for your feedback,
Pieter
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AaXfXLSC0Tcxp34FMM4exTOQ0huwWfRCks5r3OLlgaJpZM4M-wAa>
.
|
Pieter, |
I have a little info that may help others. I had some frustration getting OTA to work. It turns out my Time Warner / Spectrum router blocks multicast between wired and wireless. I am updating my code wirelessly but only by switching my 'programming machine' out of wired and on to wireless when I am ready to program. The Time Warner / Spectrum router also apparently blocks the' mDNS responder', hopelessly. There does not seem to be a setting change or work-around that would make it work. Fortunately, it is not essential. |
One of my machines runs W10, and couldn't connect using mDNSResponder (obviously). I installed the Chocolatey package manager (https://chocolatey.org/), and then used that to install the Bonjour service (didn't need to mess with the rest of iTunes), using the command line "choco install bonjour". Now it works fine. |
thank you !
…On Sun, Sep 24, 2017 at 4:04 PM, bill-orange ***@***.***> wrote:
I have a little info that may help others.
I had some frustration getting OTA to work. It turns out my Time Warner /
Spectrum router blocks multicast between wired and wireless. I am updating
my code wirelessly but only by switching my 'programming machine' out of
wired and on to wireless when I am ready to program.
The Time Warner / Spectrum router also apparently blocks the' mDNS
responder', hopelessly. There does not seem to be a setting change or
work-around that would make it work. Fortunately, it is not essential.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AaXfXPPO8_J_GT8aa1agzkYtf-XknzMAks5sluAYgaJpZM4M-wAa>
.
|
I had same issue with mDNS on a fresh win10x64 install with the latest iTunes. Followed @hollandmike suggestion and installed the bonjour service separately with 'choco install bonjour', so thanks for that. |
Pieter,
First, thank you very much for your detailed explanation of the ESP8266 module, its capabilities and functions. I have successfully worked through each 'tutorial up to and including the Turning On & Off an LED over WiFi. Everything worked perfectly EXCEPT the mDNS function. While the sketches verified and uploaded fine through my FTDI and ESP8266 ESP-01 and I received via serial that 'mDNS responder started' and 'HTTP Server Started' I could not receive a response when typing in http://esp8266.local. Ping to esp8266.local did not respond. HOWEVER, if I typed in the local IP, I could PING and receive "Hello world" and TOGGLE LED worked fine. Can you advise solution? Thank you in advance.
The text was updated successfully, but these errors were encountered: