Questions tagged [esp32]

For issues relating to the ESP 32 Wi-Fi and Bluetooth combo chip of Espressif.

The ESP32 is a 2.4 GHz Wi-Fi and Bluetooth combo chip from Espressif and the successor to the . It is designed for mobile, wearable electronics, and Internet-of-Things (IoT) applications.

Resources:

The CPU itself is based on the Xtensa ISA. Use for questions about Xtensa assembly language, ISA, and gcc options. But not for problems compiling / linking with the ESP32 SDK; that's specific to the vendor-supplied SDK not really the ISA.

2859 questions
4
votes
0 answers

websockets.exceptions.ConnectionClosedError: code = 1006 (connection closed abnormally [internal]), no reason Python 3.7 websockets

I have the same problem as this, 1006 Connection closed abnormally error with python 3.7 websockets but my use case is different. So please help me out on this. I am running a python websocket server. This is my code, import asyncio import…
Senuda Jayalath
  • 88
  • 1
  • 12
4
votes
2 answers

Making ESP32 WiFi/Bluetooth work together

I'm creating a App that involves Bluetooth and WiFi. I firstly connect the Phone to the Bluetooth and pass the WiFi ssid and password through it. Then after receiving the ssid and the password I attempt to connect it to the WiFi. I manage to store…
Nilton Schumacher F
  • 814
  • 3
  • 13
  • 43
4
votes
1 answer

Can you use all the ESP32's GPIO pins when the WiFi is working?

I have a weird phenomenon that when I add the WiFi library and all the settings, 2 out of 3 sensors stop working. When I remove the WiFi code it works like it used to. I have an ESP32 devkit v1 board and connected 3 sensors which are a photoresistor…
4
votes
1 answer

esp32_cam read and process image

I am trying to use tensorflow-lite on a esp32_cam to classify images. I defined the following sub-tasks that i need to solve: Take photo Reduce size of photo to (e.g.) 28x28 pixels grayscale run inference with trained model For now I am stuck…
nopact
  • 195
  • 2
  • 12
4
votes
0 answers

esp32 x509 over GPRS to AWS MQTT (8883)

i am new to iot and aws, i am facing a problem communicating with aws mqtt over gsm module first i used an example to communicate with AWS MQTT using a WIFI library by setting the private,root,and certificate, using wifi client like this …
mohammad
  • 2,142
  • 7
  • 35
  • 60
4
votes
1 answer

How to connect a sim800l to a broker with SSL?

I am trying to connect to an a mosquito broker hosted on AWS, on port 8883, but so far I have not been successful. I am using the TinyGSM and PubSubClient libraries. The GSM module is connected to the internet and works perfectly in a broker without…
4
votes
1 answer

How to cleanly tell a task to die in FreeRTOS

I'm making a light with an ESP32 and the HomeKit library I chose uses FreeRTOS and esp-idf, which I'm not familiar with. Currently, I have a function that's called whenever the colour of the light should be changed, which just changes it in a step.…
Tugzrida
  • 491
  • 2
  • 6
  • 17
4
votes
9 answers

Esp32cam Failed to connect to ESP32: Timed out waiting for packet header

I've just recieved my very first esp32cam (AI THINKER) today and I was excited to test it, but I'm unable to upload any code to it. I'm always getting the following error: Failed to connect to ESP32: Timed out waiting for packet header So, the FTDI…
PetCheetah
  • 87
  • 1
  • 1
  • 11
4
votes
1 answer

ESP32 Arduino BLE DeepSleep

I am working on a project involving 2 ESP32 Wemos D1 Mini boards. I am using the BLE feature to transmit a sensor reading from the "server" to the "client". I use a Characteristic Notify to the client which receives the sensor reading. If I want to…
Kevin M.
  • 83
  • 2
  • 7
4
votes
2 answers

Fastest way to check internet connection with ESP32 Arduino

Update: I know, the WIFI AP is still on & active in this case and the chip should not know about the change, but the question is still open. How should I check the connectivity? In my project, the internet connection is really important. After some…
gemboly
  • 63
  • 1
  • 6
4
votes
1 answer

How To Increase RX Serial Buffer Size for ESP32 library Hardwareserial (Platform IO)

I would like to send strings from USB (serial) to my esp32 microcontroller (Arduino) that are larger than the apparently default 64 bytes limit of the actual Arduino or the apparently 256 byte limit for the esp32 [1]. I found the command [2]…
nolimits
  • 43
  • 1
  • 3
  • 16
4
votes
1 answer

Different result between Serial.print and Serial.printf in ESP32

I want to print my string variable using printf method: id = 6415F1BF713C Serial.printf("id: %s\n\n", id); Serial.print(id); The result that I got was: id: ⸮⸮⸮? 6415F1BF713C is there any thing that's wrong? Thanks. Update : //get device…
William Santoso
  • 43
  • 1
  • 1
  • 4
4
votes
2 answers

ESP32 - SoftwareSerial Library

I have a ESP32 and I need to work with more serial ports, but I can't be using the Software Serial Library into ESP32, because the Arduino IDE don't recognize the library. How could I be using it? #include #include…
user12824598
4
votes
1 answer

SSL certificate for esp32 https server

I have a problem with insecure SSL certificates. My proyect consist on two parts: ESP32 iot device with a https server VUE2 + Vuetify PWA web app deployed to firebase hosting. Imagine that one client buy my iot device, and connect it to the power.…
Guine
  • 51
  • 1
  • 2
4
votes
2 answers

Decoding binary data using 'protoc --decode' fails with error "Type not defined"

I'm using google's protocol-buffers for communication in my project, and I'm trying to use their command line tool protoc to manually decode some binary data (in hex format). This is the command I'm using: echo 08015a325a300a0d313932 | xxd -r -p |…
JDune
  • 567
  • 7
  • 10