New answers tagged

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("/",...
user avatar
  • 287
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.
user avatar
  • 1
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 ...
user avatar
  • 231
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 ...
user avatar
  • 102k
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 36.2k
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 ...
user avatar
  • 102k

Top 50 recent answers are included