New answers tagged esp32
2
votes
Accepted
ESP32 AsyncWebServer with softAP does not serve pages
The usage of serveStatic() is wrong. It's not intended to be used inside a callback. Just place the call in the setup of the webserver, i.e.:
void WebApp::Begin()
{
_server.serveStatic("/",...
0
votes
Accepted
esp32, platformio A fatal error occurred: Packet content transfer stopped (received 8 bytes) *** [upload] Error 2
For anyone wondering, i found out it means that there's some kind of disconnect between the computer from which your uploading and the file system. Essentially, the esp32 is broken.
1
vote
How often should we poll the 74HC165 if we wish to detect 'button' presses?
Yes, it's pretty normal to endlessly poll the buttons. Even the original NES controller did it exactly that way, its protocol works exactly like you'd talk to a shift register. Majenko alredy gave an ...
3
votes
How often should we poll the 74HC165 if we wish to detect 'button' presses?
For this you can employ the nyquist-shannon theory for signal sampling.
In short it states that "to sample a signal frequency of X you need at least 2x X samples per second".
So if you know ...
1
vote
Is possible to use ESP-NOW in LR mode (long range) simultaneously with WIFI STA (to connect to internet over wifi)
you can easily use both ESPnow and WiFi - you just configure it as WiFi.mode(WIFI_MODE_APSTA);
no need to switch between AP and STA
And I have not experienced any delays for my gateway - sending MQTT ...
3
votes
ESP32 AsyncWebServer with softAP does not serve pages
I don't have enough rep to make a comment on your post, but is it possible that when you give the parameter for the function setDefaultFile() that the forward slash on /index.html is causing the path ...
3
votes
Accepted
Wrong use of memory?
As I said in a comment, there is nothing wrong with these declarations.
Now, here are some debugging strategies you may try:
You can rebuild your program with all compiler warnings enabled. Look
...
1
vote
How to get the name of connected device over BLE?
(Note: this is all just from reading the library source code, nothing has been tested).
You can't get the details of the just-connected-client. However you can get a list of the currently connected ...
Top 50 recent answers are included
Related Tags
esp32 × 675arduino-ide × 98
esp8266 × 69
wifi × 52
arduino-uno × 47
espressif × 38
bluetooth × 34
i2c × 29
web-server × 29
serial × 27
c++ × 25
spi × 23
sensors × 22
http × 18
mqtt × 16
power × 15
adafruit × 15
json × 15
sd-card × 14
ble × 14
interrupt × 13
battery × 13
led × 12
nodemcu × 12
library × 12