Hot answers tagged

17 votes
Accepted

How can I list the partition table of a currently running esp32 devboard?

The current tools of the ESP32 have no explicit option for that. However, the existing tools can be easily combined to do this. The partition table is located at 0x8000 (32768) on older, and on 0x9000 ...
peterh's user avatar
  • 491
14 votes
Accepted

What is a good way for an IoT device to receive its network settings?

What you describe is actually a quite common (the most common?) way to solve the problem of integrating WiFi IoT devices into your local LAN. For example, from my experience Amazon Echo Devices are ...
oh.dae.su's user avatar
  • 570
11 votes
Accepted

ESP8266 with ethernet connection

The simplest solution is to add an external ethernet interface driven over SPI, as used in this example. It's also possible to bit-bang the ethernet interface directly, as decsribed in this article, ...
Sean Houlihane's user avatar
10 votes

ESP8266 with ethernet connection

The ESP8266 was not designed with an Ethernet MAC, but this should not stop you. However, as Sean has said, it imposes a set of pretty severe restrictions on you. You say that you wish to stay with ...
David Freitag's user avatar
10 votes
Accepted

Can I use an ESP8266 as an MQTT broker?

Technically speaking, yes, an ESP8266 could act as an MQTT broker. In fact, someone has already tried it! By the end of their project, they claimed to have a broker that can bridge to a cloud MQTT ...
Aurora0001's user avatar
  • 18.2k
9 votes

Can I use an ESP8266 as an MQTT broker?

My suggestion would be a mosquitto MQTT broker on a Raspberry Pi. There is an article here https://tech.scargill.net/a-christmas-script/ where Peter Scargill have made a script that installs all ...
MatsK's user avatar
  • 842
8 votes
Accepted

How to write/post files to website server through ESP 8266

Typically, files are uploaded using a HTTP POST from a web form (I assume that's what you're thinking of when you say file upload). The exact format of the request tends to look a bit like this, as ...
Aurora0001's user avatar
  • 18.2k
8 votes

ESP8266 Without Web Page

Yes, you can send data to an ESP8266 without using a web server, but you might want use one, or use something functionally related to one. An ESP8266 is a fairly general purpose computing device with ...
Chris Stratton's user avatar
8 votes
Accepted

Controlling normal bulbs brightness using Sonoff devices

No, you can't do that using Sonoff since it is an on-off switch with relay. You need an Triac to do that. Normally the brightness control applications for AC will be done through Triac by changing ...
Electron's user avatar
  • 196
7 votes
Accepted

Sub milisecond timer for ESP8266 in Lua

I think you might struggle to get a microsecond delay that is both accurate and non-blocking with the ESP8266. According to the NodeMCU documentation: If you look at the app/modules/tmr.c code for ...
Aurora0001's user avatar
  • 18.2k
7 votes

Standards for non-Internet-connected WiFi devices?

About IoT protocols, most commonly HTTP, CoAP and MQTT are used on communication. HTTP and CoAP are suitable for REST type of client(s) to server communication and MQTT supports publishing and ...
mico's user avatar
  • 4,301
7 votes

Standards for non-Internet-connected WiFi devices?

My recommendation is MQTT. Versatile, lightweight and modular, it can even run on a ESP8266 (Hub and client). The MQTT protocol is available for many platforms from embedded, mobile devices and up to ...
MatsK's user avatar
  • 842
7 votes
Accepted

Is there any way to access local server from outside without port forwarding?

You have to provide an endpoint of some sort to allow control over a given device. Port forwarding is not the only option, the device could connect out to a publicly accessable server on the internet, ...
hardillb's user avatar
  • 12.5k
7 votes

Detecting IoT devices in web browser?

I'm not aware of any generic local discovery capability built in to a browser. In fact I would consider any capability to be a security venerability as it would allow attackers to profile the your ...
hardillb's user avatar
  • 12.5k
7 votes

Local and distant MQTT communication

A broker like mosquitto will run happily on the Pi and bridge to a remote broker. How much resources it will consume entirely depends on how much traffic you send through it and if you end up queuing ...
hardillb's user avatar
  • 12.5k
7 votes

What happens internally when ESP8266 goes into deepsleep mode?

You can see this document https://www.losant.com/blog/making-the-esp8266-low-powered-with-deep-sleep In summary, ESP8266 supports 3 sleep modes: Modem-sleep Light-sleep Deep-sleep Modem-sleep Mode ...
yoonghm's user avatar
  • 171
6 votes

ESP8266 Mesh Network Root Node

Another option to easy mesh is to use painlessMesh by BlackEdder and introduce there a bridge for commuting the data to outer world. There is an issue on connecting to other network from a mesh in ...
mico's user avatar
  • 4,301
6 votes
Accepted

Getting status from WeMo device using Alexa

Perhaps the software featureset has changed but I've found that the following works. This is from my DIY code for nodemcu/D1 mini ESP8266 module using esp8266 webserver listening for local UDP ...
user3772748's user avatar
6 votes
Accepted

Can't Flash ESP8266 latest firmware, says "Fast Flashing error" and "Invalid head of packet(' ')"

Okay found the solution. Firstly I think the detected info block tells the flash size. In Snap it could be seen as 8MBit. The 1.54 version of the firmware has two files, one for 8Mbit and the other ...
Salim Shamim's user avatar
6 votes

Can I use an ESP8266 as an MQTT broker?

In addition to the answers and comments that recommend using a Raspberry Pi because of the ESP8266’s limited resources, it would generally make sense to use the ESP32’s, the unofficial successor to ...
Moritz's user avatar
  • 161
6 votes
Accepted

Can I upload code to NodeMCU without using micro USB?

Here is everything you need to know: ESP8266 Boot Mode Selection. The following ESP8266 pins must be pulled high/low for either normal or serial bootloader operation. Most development boards or ...
Bence Kaulics's user avatar
6 votes

What is the difference between SPIFFS and EEPROM?

SPIFFS (Serial Peripheral Interface Flash File System) is a method for creating a file system in NOR-type flash memory. EEPROM (Electrically Erasable Programmable Read-Only Memory) is a type of non-...
MatsK's user avatar
  • 842
6 votes
Accepted

How to send continuous data from a few ESP8266 to a webserver?

MQTT is probably the right answer. Each ESP can publish to the broker with a topic structure something like: client1/sensor1 client1/sensor2 You can then use MQTT over Websockets to subscribe to ...
hardillb's user avatar
  • 12.5k
5 votes

Creating a private subnet by assigning IP's through DHCP

IP ranges on networks have reserved places for certain addresses. Lets take the first step when splitting network in two as an example: network # ip for devices broadcast 0 ...
mico's user avatar
  • 4,301
5 votes

Sub milisecond timer for ESP8266 in Lua

I have managed to recompile the NodeMCU firmware with us timer enabled: Install docker build environment of Marcel Stör: https://hub.docker.com/r/marcelstoer/nodemcu-build/ change firmware files in ...
kadzsol's user avatar
  • 51
5 votes
Accepted

How to use MQTT on Arduino which uses serial com to send AT commands to ESP8266

I finally found a tutorial by Sony Arouje. As it turns out I had to completely abandon manual sending of esp commands and had to use the library (WiFiEsp.h). Hint...It's better! Though initially it ...
Salim Shamim's user avatar
5 votes
Accepted

Is this architecture feasible and flexible?

The architecture which you propose seems OK. You can build more functionality on top of this, such as authentication and request sanitisation (for example time of day controls, rate limiting, etc) so ...
Sean Houlihane's user avatar
5 votes

ESP8266 fast HTTP GET response rate

You should avoid lenghtly connection resets on your getPage( ) method by using Connection: Keep-Alive instead of Connection: Close That may save quite a lot.
mico's user avatar
  • 4,301
5 votes

ESP8266 Mesh Network Root Node

I would modify a bit the existing implementation of EasyMesh, as currently it does not seem to implement node roles. Each node is equal and they can build connections only with each other. As I see ...
Bence Kaulics's user avatar
5 votes

Alexa cannot identify Fauxmo and ESP8266

So I found a solution to the problem. I was originally going to connect the Fire TV stick Alexa to the esp. I bit the bullet and bought an Echo dot. Problem solved. Fauxmo in its current state ...
llewmihs's user avatar
  • 151

Only top scored, non community-wiki answers of a minimum length are eligible