Sara,
Thanks for the reply I wanted to let you know that this is the first time this has happened for me as well. I am able to join other IP addresses from RNT tutorials. i.e. BME680 async server works perfectly.
I have tried three browsers, Vivaldi, Chrome, Explorer, with the same result.
I erased the memory on my 8266 NodeMCU board and reflashed it. I also reactivated the Wifi chip on the board via MicroPython.
I have only rarely been able to get webrepl to talk to these boards so I am wondering if there is a common issue with the firmware. Perhaps this is an issue with some of these boards I have three from the same vendor?
I will see if there is something incorrect in my laptops network settings? I don’t want to fix something that is not broken as I am able to connect to other similar devices. I did want to say before I go that I can’t access this ip address on my Android phone either?
I will report any findings to https://rntlab.com/forum/.
Thank you again,
Dave
Hi.
I wasn’t able to see the picture you posted. To share a picture, use a link to imgur, dropbox or google drive, for example.
Can you tell me what exactly is the error that you are getting, what IDE are you using and which distribution of MicroPython?
Additionally, do you get any written errors?
Regards,
Sara
Hello Sara,
This is the message that I got from Windows network diagnostics:
The remote device or resource won’t accept the connection Detected
The device or resource (wpad.Home) is not set up to accept connections on port “The World Wide Web service (HTTP)”.
I am using Arduino IDE 1.8.13 (I loaded the code into my Windows laptop, and a Raspberry Pi 4)
I am using MicroPython 1.13
NodeMCU 12E Firmware = esp8266-20200911-v1.13.bin
No written errors are evident directly at my browser, also attempted connecting with Chromium on my rpi 4 without success.
As I said at my tutorial post I am using the same NodeMCU board with your ESP8266 NodeMCU BME680 Environmental Sensor Using Arduino IDE, and it is functioning perfectly?
Here is the link to the working ESP8266-BME print view working on my laptop using Same Model ESP8266 nodeMCU -12E Board.
https://drive.google.com/file/d/1bnPgJ0f0CCg90o9vv6h8Jm_nJpokZKCQ/view?usp=sharing
I may tear apart my working ESP8266 NodeMCU board and load this Sketch to see what Happens?
I don’t want to unless that is a last resort.
I am going to check the forums at NodeMCU or MicroPython to see what I can find there as well.
Thanks
Dave
Hi Dave.
I’ve just tested the BME680 web server with micropython project and everything is working as expected.
Can you show me what happens on the Serial Monitor of the MicroPython IDE you are using when you try to access the IP address?
Did you try accessing the web server using a smartphone on your local network?
Regards,
Sara
Hello Sara,
Thanks for check in with me. The BME680 Web server on one of my ESP8266 boards is working beautifully! I am about to load that same sketch on the board(s) that I could not connect with. If I can connect on another board with this sketch that would indicate that there is some issue between the two sketches.
I am also wondering that if in your experience there is some issue that may with firmware or MicroPython that I am loading to the boards that could be causing them to not except connections. I have been following the guides at MicroPython.org??
Thanks
Really appreciate you and your good work.
Dave
Hi Dave.
I don’t think it is related with the micropython firmware.
I’ve just tested with the latest distribution and it worked as expected.
I’m out of ideas of what might be causing the issue.
Regards,
Sara
Sara,
Thanks for trying. I will attempt to load the DS18B20 tutorial code on my working board to see if that works tonight. That would I will let you know of the result.
Thanks
Dave
Sara,
I know. You are tired of hearing from me. But I can’t help myself. I just want to let you know what I have just tried.
I have one NodeMCU dev board that has been running a sketch from your ESP8266 BME 680 Webserver perfectly.
I took that board and uploaded the raw code from the DS18B20 sensor X 3 tutorial. I did not make any changes to the code or to my Router settings. The this code on the same board upload correctly, I got the IP address from the serial console in the Arduino IDE, I enter it in a browser and I could not connect to the ESP8266.
I then uploaded the BME 680 webserver code again, and was able to connect to the board via my Vivaldi Browser and my Pixel phone?
This would mean to me that there is some difference in the sketch or a library from one sketch to another, or there is something in my router limiting connections that I am not aware of. My router is supposed to allow 250 connections, I have 5? I have been through the sketch an libraries multiple times. I see nothing that would cause this.
For now this is all that I have
I appreciate your comment.
Please enjoy this coming Holiday Season.
Dave
Hi Dave.
Can you show me a printscreen of what you see in the MicroPython IDE console when it prints the IP address? And does it print something when you try to access the web server?
The IP address usually is the same on the same board. So, if you tried the web server with Arduino IDE and got one IP address, in MicroPython the IP address should be the same.
Regards,
Sara
Hello Sara,
This is the output to the serial console:
***********************************************************************************
ip:192.168.0.53,mask:255.255.255.0,gw:192.168.0.1
SDK:2.2.2-dev(38a443e)/Core:2.7.3-3-g2843a5ac=20703003/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-30-g92add50/BearSSL:5c771be
Locating devices…Found 2 devices.
Found device 0 with address: 2888FA44432001EA
Found device 1 with address: 283DFBB94420015D
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 2
cnt
connected with CenturyLink6661, channel 3
dhcp client start…
ip:192.168.0.53,mask:255.255.255.0,gw:192.168.0.1
Temperature for device: 0
Temp C: 19.81 Temp F: 67.66
Temperature for device: 1
Temp C: 20.00 Temp F: 68.00
********************************************************************
There is no output that comes from the attempt to connect to the Wifi from a browser.
I also set up a Wifi hotspot with my mobile phone in an effort to isolate a problem with my router and I could not connect in that instance either. I have been trying to find a NodeMCU forum or MicroPython forum to see if there is any questions about whether there is a conflict with the web server activation function when installing firmware. I am following the MicroPython.org procedure for installing firmware. I have never been to confident that I am setting up the Wifi correctly while following the MicroPython tutorial at that site? What steps do you follow to flash and set up Wifi on your boards when you first start using them? This information could be useful?
Thanks again,
Dave
Hi.
What do you mean by “flash and set up Wi-Fi”?
You just need to install MicroPython firmware. You can follow this tutorial: https://randomnerdtutorials.com/flash-upload-micropython-firmware-esp32-esp8266/
Then, just follow the instructions for the DS18B20 projects. You don’t need to follow any other steps. What additional steps are you following for setting up the wi-fi?
Regards,
Sara
Hello,
I was using this process at these links see MicroPython.org.
https://docs.micropython.org/en/latest/esp8266/quickref.html
https://docs.micropython.org/en/latest/esp8266/tutorial/index.html
The link to UpyCraft download for Windows, the exe file that downloaded did not include the required .dll file for it to load appropriately see image.
I would be happy to install this IDE it just seems to be kind of buggy?
So I went to the UpyCraft Git Repository and downloaded the .zip file which did not contain an .exe file to install.
So that will not work! I also then looked into many of the comments for the linked tutorial and saw several issues with the same missing .dll file that did not look like they were resolved?
What needs to be on the ESP board prior to uploading one of your Arduino/HTML sketches? I can erase the flash and start from the beginning again. I just want to know what the starting point should be?
Thanks
Dave
Hello,
I was using this process at these links see MicroPython.org.
https://docs.micropython.org/en/latest/esp8266/quickref.html
https://docs.micropython.org/en/latest/esp8266/tutorial/index.html
The link to UpyCraft download for Windows, the exe file that downloaded did not include the required .dll file for it to load appropriately see image.
I would be happy to install this IDE it just seems to be kind of buggy?
So I went to the UpyCraft Git Repository and downloaded the .zip file which did not contain an .exe file to install.
So that will not work! I also then looked into many of the comments for the linked tutorial and saw several issues with the same missing .dll file that did not look like they were resolved?
What needs to be on the ESP board prior to uploading one of your Arduino/HTML sketches? I can erase the flash and start from the beginning again. I just want to know what the starting point should be?
Thanks
Dave
Hi Dave.
I’m very confused.
So, you’re saying that uPycraft installating doesn’t work? I need to take a look at that.
You can try Thonny IDE instead. Follow this next tutorial: https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/
Then, just follow the project for the DS18B20.
You don’t need anything else.
I’m sorry, but I didn’t understand your last question. If you want to use Arduino IDE again, you just need to upload a new sketch,
If you want to factory reset your board, you can follow this: https://rntlab.com/question/how-perform-reset-factory-esp32/
I’m sorry that I’m not able to understand your issue.
Regards,
Sara
Hi Sara,
I think that I have finally determined that of the three NodeMCU boards that I purchased on Amazon only one of them is working. I think that some of the GPIO pins are not working on them. The same code utilized in this tutorial works beautifully on a ESP32 board. Using the same DS18B20 sensors! Good thing the boards are so inexpensive!
Sorry to cause so much confusion.
Dave
Hi Dave.
I’m glad you found the source of the error.
Can you show me the amazon product page where you bought the boards?
Regards,
Sara
Sure here is the link to the Amazon location.
http://www.amazon.com/gp/product/B081CSJV2V/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=