![]() ![]() Or even you can use the default firmware location (./firmware): Node app.js -firmware=firmware.bin -firmware-location=/opt/firmware Usage const updateServer = require( "esp8266-firmware-update") Īlso, you can override the configuration options passing the flags: Install $ npm install esp8266-firmware-update -save You need to write a simple code to create a server that listen for firmware update requests. restartOnUpdate : The devices should restart after firmware update ?.Even if you have a specific firmware for a specific device. This is used to get track of the updates over your devices. url : The endpoint that will serve the firmware. ![]() interval : The update check interval in seconds how often de device will ask for a update.Once you've installed on Arduino IDE the usage is pretty simple: # include # include const char* ssid = "your-ssid" ĮSP8266Autoupdate updater = ESP8266Autoupdate( 10, " "fan-controller", true) ĭigitalWrite(LED_BUILTIN, HIGH) // turn the LED on (HIGH is the voltage level)ĭigitalWrite(LED_BUILTIN, LOW) // turn the LED off by making the voltage LOW This library has to be included in the arduino IDE. The projects contains two pieces of code: This module allows the ESP8266 compatible device to ask for an update to a server, which knows whether the device already has a firmaware or not. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |