Questions tagged [arduino-esp32]
491 questions
1
vote
0 answers
ESP32 - Interrupt is triggering when I send a pulse through digital pin
I have a precision pulse flow meter connected onto pin D4 of my ESP32 and am programming in the Arduino IDE environment. The following libraries are used:
/* Libraries */
// Include WiFi Library
#include
#include
// Include…

Gamme40
- 33
- 6
1
vote
1 answer
SmartConfig Specific ESP32 using Flutter
I am developing an IoT device with Android App. For the hardware, I am using ESP32. For the Android App part, I am using Flutter for the development. I managed to write the SmartConfig code using the esp_smartconfig package. This is working really…

Ajay Ramprasad
- 29
- 8
1
vote
0 answers
ESP32 preferences library: what is the correct use of .end()
Following this tutorial on how to use the Preferences library it is not clear when to call preferences.end().
Do I need to call this as soon as I've finished reading or writing, or can I wait until I put the ESP32 to sleep? Will I loose all the…

JakesMD
- 1,646
- 2
- 15
- 35
1
vote
0 answers
Bodmer / TFT_eSPI touchscreen button "Destroy comand"
This question is specific to a library ,Bodmer's Tft_eSPI
The author mentioned that he got the button code from Adafruit GFX Library, so they should be similar.
My problem is a simple one: I want to make a simple button menu. I have figured out how…

lolren
- 29
- 1
1
vote
2 answers
Why getLocalTime implementation needs delay
I noticed a weird behavior of my application on an ESP32.
After some "debugging" I think the issue is due to this function:
bool getLocalTime(struct tm * info, uint32_t ms)
{
uint32_t start = millis();
time_t now;
while((millis()-start)…

Mark
- 4,338
- 7
- 58
- 120
1
vote
1 answer
Why is this POST request from ESP32 to control KASA smart plug not working?
I am trying to communicate to a KASA HS103 smart plug using an HTTPS POST request sent via ESP32 (LoRa V2). For the actual POST content, I'm quite new to HTTP and have been following the instructions here:…

shark24
- 21
- 3
1
vote
2 answers
Javascript sending only one message over websocket in browser
I have a websocketserver running on a ESP32 which works perfect.
My problem is that if I send a message to the server over a website the socketserver on the ESP32 executes the .send(message) only the first time and is not sending anymore any…

Pietro Manzella
- 37
- 6
1
vote
1 answer
How to upload a value to ESPAsyncWebServer?
I am trying to upload a variable called 'data' from my ESP32 to a web page hosted on async web server, but I can't find a way to do so.
String data = "text";
const char index_html[] PROGMEM = R"rawliteral(

Atropin
- 41
- 3
1
vote
1 answer
ESP32 firebase OAuth2.0 access token error -116
i'm trying to connect esp32 to firestore but an error appear on the serial monitor
Token info: type = OAuth2.0 access token, status = error
Token error: code: -116, message: mbedTLS, mbedtls_pk_parse_key: PK - Invalid key tag or value
i'm using…

Yóuxì
- 11
- 1
1
vote
1 answer
ESP32 Bluetooth Pairing To Phone
I am trying to make it so that my ESP32 board can detect my phone when I approach it based on RSSI. However, the ESP32 cannot see the phone unless the phone is in discovery mode, which is not super useful. To solve this, I was hoping to pair my…

Sith Siri
- 61
- 6
1
vote
3 answers
identifier "pinMode" is undefined why i am receiving this error
i am trying to run aurdino ide with vs code but i am receiving this error why ??
[![enter image description here][1]][1]
#define LED_BUILTIN= 2
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN,…

codeit_9038
- 35
- 1
- 3
1
vote
1 answer
Start ESP32 when start is published in mqtt
This is my first time working with Arduino, an esp32 and MQTT. I made a motion sensor that prints to an LCD when it senses movement and publishes a message to mqtt, but it loops on forever. I am trying to make it so it will only start when start is…

Conner
- 11
- 2
1
vote
0 answers
ESP32 Upload a flash memory file to Google Drive using a program for ESP32CAM
I am trying to upload a ".wav" (circa 32kB) file from the flash memory of ESP32 to Google Drive. Is there a way to do that and would you be able to suggest a way to approach this? I am currently trying to use a code that does the same thing, but…

DarreeN
- 21
- 3
1
vote
2 answers
Version controll for multiple files on an embedded system
I have an esp32-wrover-e ( 16mb flash and 8mb external ram )
I'm coding it with arduino framework.
On the esp32, there is a webserver and it has multiple files for login, the main page and things like that. I want to upgrade every file on the file…

Dr.Random
- 430
- 3
- 16
1
vote
0 answers
ESP32: Can't start Serial Bluetooth after creating FreeRTOS task handlers or vice versa, can't create the task handlers after initializing Bluetooth
Well, I'm just starting with FreeRTOS, tried reading the docs but not getting much help. I'm using:
PlatformIO
ESP32 Dev Module
The task handlers run voice command detection from Atomic14's implementation of Tensorflow's micro-speech example.
If…

Creator Muncan
- 11
- 3