Hot answers tagged

4

Thanks to @Majenko I was able to find what I was looking for on the internet from this link. When I googled "captive portal" instead of the phrases that I was using I found a lot more examples. This code opens a "captive portal" once I connect to the esp32 access point. #include <WiFi.h> #include <DNSServer.h> const byte ...


3

Of course, as soon as I linked that WiFi Manager library in my question, I figured it out. The term I was missing was "captive portal" and I was able to figure it out from there. But I decided to post the question anyways, since it might help someone else stuck in the same situation. Here's my understanding of how it works: when your device ...


3

When providing HTTP server you generally have two options: Using WebServer class and set handlers for roots. The parsing and handling of HTTP header is done by the library. Use WifiServer and receive the HTTP message with header included and handler everything by your own. If you are doing number 1 and pretend using by connecting with an Android device I ...


2

The answer is as clear as any other EspressIf configuration data, it is 4 or maybe 5, or 8, or 12, 16 or even 20 (the same as a ESP8266!) To clarify, it seems that around 2015 the maximum was 4 connections, but it is possible to recompile the SDK to support up to 16 connections. There doesn't seem to be a #define of flag that will let a programmer control ...


1

A const parameter to a function doesn't define what can be passed. It is, instead, a "promise" by the function that it will not modify the data you pass it. In C when you pass a "string" (which is actually an array of characters) to a function you don't actually pass the string (as in the content). You really just pass a pointer to the ...


1

The esp8266 will not bridge the networks. You can perhaps bridge the communication from your other ep8266 on the TCP level with WiFiServer and WiFiClient. Send the sensor value to middle esp8266 running AP and it sends the value to Raspberry. With MQTT you could create some MQTT proxy. Receive the data with WiFiServer and forward it with WiFiClient. without ...


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