ESP8266 | Documentation and help with the ESP8266
kandi X-RAY | ESP8266 Summary
kandi X-RAY | ESP8266 Summary
Documentation and help with the ESP8266 chip/boards/modules. You can find the entire article here, or you can just download it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ESP8266
ESP8266 Key Features
ESP8266 Examples and Code Snippets
Community Discussions
Trending Discussions on ESP8266
QUESTION
Started to develop a wiresless 'cable' solution (with websockets) between two ESPs, a wireless serial 'cable' between computer and a serial device to mimick a direct wired connection. Was working great however just accidentally fried one of the ESPs (short a serial cable connection to higher voltage - sigh) when testing. Replaced one of the ESP32s with an ESP8266. Suspect this should work however it did not.
The problem is the ESP8266 (client) cannot find the network of the ESP32 (server). Why it doesn't work? My computer can see the server and can connect. Fried ESP32 the same, no problem.
Tried the WiFiScan demo on the ESP8266 and can detect all other WiFi SSIDs/MACs in neighborhood however cannot detect the ESP32 server it's SSID/MAC.
Why it doesn't work? What is the difference and how can I solve this?
ESP32 - code of the server
...ANSWER
Answered 2021-Jun-14 at 07:45WiFi channels 12-14 are not used in some countries (e.g. US). Perhaps the ESP32 AP picked one of those channels, and ESP8266 is configured by default with settings from a country which doesn't allow them. Set the AP channel to some reasonably safe value in range 1-11.
I can see that the default channel should be 1, but I'd suggest experimenting with it, perhaps setting it to 6:
QUESTION
I need to program a ESP32 to act as webserver and have 2 simple pages.
The first one should contain a form that the user has to fill in. (one text box, one dropdown and one checkbox.) The form has a submit button, and when it is pressed, the values are written to the ESP32, and a new page is presented. This new page will the update its content dynamically via AJAX calls.
I've found and seen countless tutorials and managed to make the second AJAX page that updates on its own without refreshing. I am not able to undertand tough how I can make the / root page with the form to submit its data, AND to forward to the second page.
So basically the questions are 3:
- how can i have more than one page on a ESP32?
- how can I submit a form so that the values get stored in variables on the ESP?
- how can the submit button forward to the next page?
Thank you
-----EDIT:------
I found an answer to questions 1 and 3 with this sample: https://www.arduinoslovakia.eu/blog/2019/4/esp8266---http-server-s-viac-strankami?lang=en
question 2 is still open tough. Thank you!
...ANSWER
Answered 2021-Jun-13 at 17:23You need to parse the incoming url, depending on the request you are sending with your form. The most common is a POST request, regarding to HTML forms.
If you send a POST request to your ESP, then your data will be in the body and you should parse in there. You will get a request like this (Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)
QUESTION
I have fetched an associative array from database and the problem is that the purpose i.e. $row['purpose'] remains all the same and is set to the very last row fetched Below is my entire PHP Script
Note:- This question is answered and the question code is replaced with a working answer The question has been answered and the code I provided with the question has been replaced with the code from the answer
...ANSWER
Answered 2021-Jun-13 at 12:22in you foreach you should pass the actula values of $row['purpose']
QUESTION
I tried to do a Clock News Weather Scrolling Marquee with the esp8266. But when I upload the code it's got an error. Can you help me? Here's a part of the code:( under the MIT License (Copyright 2018 David Payne))
...ANSWER
Answered 2021-Jun-10 at 21:43You need to also create a new instance of WiFiClient from WiFiClient.h, and pass that in to the begin:
QUESTION
I am learning how to control P10 Led matrix 64x32 with NodeModule MCU ESP8266, I google and found this library https://github.com/2dom/PxMatrix and this tutorial https://www.instructables.com/RGB-LED-Matrix-With-an-ESP8266/. I believed that I wire between P10 and ESP8266 in true way in the tutorial, but that P10 led does not display as the example:
The true result will be:
This is my wire diagram:
This is my code:
...ANSWER
Answered 2021-Jun-10 at 09:17I fixed this by adding
display.setPanelsWidth(2);
display.setMuxPattern(SHIFTREG_ABC_BIN_DE);
because my led is combined by 2 matrix 32x16.
QUESTION
I have a flask application that I need to communicate with my ESP8266 and I'm failing miserably to achieve that. It's not supposed to be hard, but I'm clearly missing something, and I wouldn't be surprised since is my first time working with flask. Let me try to explain what I've done so far.
This is my flask code:
...ANSWER
Answered 2021-Jun-08 at 20:34It's quite likely the IP addresses that you use and possibly your current network setup. If you run Flask locally, by default it will use 127.0.0.1 (localhost) and the application can only be reached from your own computer. Other hosts on the network cannot. So your intuition is correct, you need to run it on 0.0.0.0 so that the application becomes accessible on any interface, not just localhost but also the LAN IP address and WAN IP address (provided you have got one).
Now the remaining question is, is 10.104.2.114 is the correct address for your PC where the Flask application is running ? Assuming that you use DHCP, the IP address is subject to change. From what you are saying your ESP8266 is on the same network but I think the connection sharing applies some form of isolation between guests (possibly by VLAN). So, for that reason, the guests on that network may not be able to see each other and this is by design. It is normal for wifi hotspots to segregate traffic per client.
Putting all your devices on the same router/switch could work. Note that you can still use your home router/switch to connect devices, even if Internet access is out of service. This is something you could try, as long as your hardware is in good condition.
QUESTION
I want to use both MFRC522 and RDM6300 readers on a single NodeMCU, the two separate codes for each readers are respectively :
...ANSWER
Answered 2021-May-29 at 00:13void loop() {
if ( mfrc522.PICC_IsNewCardPresent()) {
// Select one of the cards
if ( mfrc522.PICC_ReadCardSerial()) {
// Dump debug info about the card; PICC_HaltA() is automatically called
mfrc522.PICC_DumpToSerial(&(mfrc522.uid));
}
}
if (rdm6300.update())
Serial1.println(rdm6300.get_tag_id(), DEC);
}
QUESTION
i'm trying to send the coordinates of mouse connected to a raspberry pi to an ESP8266 in the same network. I just wrote this bash script
...ANSWER
Answered 2021-May-24 at 18:10Here's a sketch of how the shell loop could be avoided:
QUESTION
I have some code I have been putting on an ESP8266-12e board. Until recently it always worked fine. Now though when I finish uploading the code the blue light on the ESP8266-12e is staying on. I have tried it on two different board and the blue light stay on on both. I can't figure out what I changed in the code. I have decided to put it up and have everyone look at it and let me know what I may be missing. I hope someone can find something.
My code:
...ANSWER
Answered 2021-May-12 at 19:18So I got the blue light to go off. Instead of pinMode(D4,INPUT); and digitalWrite(D4,LOW); D4 is pin 16 which is the wake pin. So I had to define it thus #define LED3 16 and then pinMode(LED3,INPUT); and digitalWrite(LED3,LOW); I will change my original code to reflect these changes.
QUESTION
after reading this answer https://stackoverflow.com/a/51614256/15486192 from @Arsam, i am successfully sending data from nodeMcu esp8266 to firebase. but i am using Database secrets Although it is deprecated.
and while searching for an alternative i came across firebase REST
Firebase Database REST API
API Usage
You can use any Firebase Realtime Database URL as a REST endpoint. All you need to do is append .json to the end of the URL and send a request from your favorite HTTPS client. HTTPS is required. Firebase only responds to encrypted traffic so that your data remains safe.
after reading that, anyone conclude that you can send data to firebase using HTTPS request.
so my questions,
is REST API just an HTTP request? i am just confused if it is, then why just not naming it HTTP API? can i send my data to firebase Realtime-database using only https request from my client?if yes then how
...ANSWER
Answered 2021-May-09 at 11:19REST or RESTful API design (Representational State Transfer) is designed to take advantage of existing protocols. While REST can be used over nearly any protocol, it usually takes advantage of HTTP when used for Web APIs.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ESP8266
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page