It did upload but after restarting the module all it did was continuously restart with an output of:Įts Jan 8 2013,rst cause:2, boot mode:(3,7) I tried doing this via the NodeMCU flasher without success. There is a caution in the docs to load esp_init_data_defalt.bin if updating from 0.9.x. I was told that I should be using an updated version of NodeMCU. I posted a few questions on the “everything esp8266 forum under chat if you care to look. I have an issue trying to connect to an ESP12 in AP mode. After some difficulty I finally got the flashing issues resolved, and went on to “bigger and better” things. Hi Rui, My first project was one of yours, and it used NodeMCU 0.9.6 as the firmware. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my Facebook Page.
Now I recommend reading how to create a web server with an ESP8266. Do you have any questions? Leave a comment down below! After finishing this process, it should appear a green circle with a check icon. Press the button “ Flash” and it should start the flashing process immediately (You might have to change some of the settings on the Advanced tab). Open the flasher that you just downloaded and a window should appear (as shown in the following figure). You can click here to find all the information about NodeMCU flasher.
exe file that you can download using one of the following links: You can use the preceding links or go directly to /tools to find all the parts for your projects at the best price!Īfter wiring your circuit, you have to download the NodeMCU flasher. You can click here to compare the ESP-01 Board price at different stores.Īnd you can check this page to get an FTDI programmer at the best price.
With just a few lines of code you can establish a WiFi connection, control the ESP8266 GPIOs, turning your ESP8266 into a web server and a lot more. And you’ll find it very similar to the way you program your Arduino. NodeMCU is a firmware that allows you to program the ESP8266 modules with LUA script. Why flashing your ESP8266 module with NodeMCU? You can also checkout my other tutorial on how to create a web server with an ESP8266 running NodeMCU firmware. Check whether your firmware is outdated.If you’re new to the ESP8266 WiFi module, first read my Getting Started Guide with the ESP8266.
String fwv = String(available_firmware_version) Http.addHeader( "Content-Type", "application/x-String payload = http.getString() Http.begin( "") //Specify request destination
const size_t capacity = JSON_OBJECT_SIZE( 2) + 60
String mac = "mac_id=" + String(WiFi.macAddress()) # define firmware_version 1 // Initialise the DHT11 sensor. Your other sketch should have a different version number. # define DHTPIN 5 # define DHTTYPE DHT11 # define CSMS A0 // Set your firmware version here. # include # include # include # include "DHT.h" // Set out Wifi auth constants.
For this guide we’ll turn our project into a plant monitor that can sense the humidity of the soil, in addition to sensing the ambient temperature and humidity.įor the guide we’ll be using the following: Part 1 showed a relatively useless example where we uploaded the ‘Blink’ sketch over-the-air. While they can be incredibly small, it’s pretty much impossible to reprogram them after soldering them to a PCB! Setting the scene I have found this a very useful thing to learn while I’ve been trying to reduce the size of my projects through the use of surface mounted ICs.