Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Hasenradball
@hasenradball

Si I observed a failing Wifi reconnect when

STA disconnected!
 STA disonnected reason:  6 / 8

occurs.
Does anyone know why?

logowe
@logowe
Since Board Manager Version 2.0.5 the ESPAsyncWeberver does not respond the clients anymore. After downgrade to 2.0.4 it works fine again. Has anyone experienced this or a similar problem related to WiFi in 2.0.5?
Hasenradball
@hasenradball
Is there anyone in the Line?
Hasenradball
@hasenradball
Can anyone explain if there is an mapping table between the PlatformIO releases (actual at 5.0.1) and the arduino core (actual at 2.0.5)?
chegewara
@chegewara
Screenshot from 2022-09-21 19-59-51.png
Hasenradball
@hasenradball
@tablatronix hi can you help me with my issue? Wifi does not reconnect when switching off wifi over night. Issue occurs with pio 5.0.0 and arduinocore 2.0.3
ofeming
@ofeming
image.png
ofeming
@ofeming
Can anyone explain why the Arduino Library Manager can not link the library path to project? My question is how to link the library path to project?
Ramiams
@Ramiams
Hello, we are using ESP32-MINI-1 module and arduino IDE, we try to select single core mode using "CONFIG_FREERTOS_UNICORE" but it is not available, any hint?
lbernstone
@lbernstone
I don't maintain the single core libraries for Arduino IDE any more. You can use this with platform.io https://github.com/Jason2866/esp32-arduino-lib-builder/blob/204_idf442/README.md
Ramiams
@Ramiams
Thank you @lbernstone , I will try it
Thomas White
@TomW1605
hi, does anyone know of a board that uses the esp32 pico v3? all the boards in the repo have the wrong pin definitions
Too large to fit in the margin
@QGB
esp32c3 arduino can not boot when use esp32-2.0.5.zip
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
entry 0x403ce000
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403d10fc
SPIWP:0xee
Martin Chlebovec
@martinius96
image.png
What these dots means at sta, ssid and password.
Is it member of struct or
lbernstone
@lbernstone
Those are member elements. wifi_config_t is a union, so that it can contain either sta or ap info. This is assigning it as a sta, and then assigning the sub-elements of sta. C++ doesn't allow you to skip the missing elements (aka identifiers), so you either need to specify all the elements, or just specifically add the ssid and password.
wifi_config_t wifi_config;
wifi_config.sta.ssid = WIFI_SSID;
wifi_config.sta.password = WIFI_PASS;
Vojtěch Bartoška
@VojtechBartoska

Hello, if you are interested, feel free to join 6th Community Meeting which will take place on Thursday 29.9. at 4 pm (CEST).

The agenda will be interesting, you can find more details here.

tobozo
@tobozo
hey everyone, if anyone is interested I'm experimenting on a ENC28J60 Ethernet driver based on the official ESP32-Arduino ETH code https://github.com/tobozo/ESP32-ENC28J60
... and the esp-idf component
Umer Arshad
@umerm64
Hello everyone
I am trying to use one esp32 as a web server as well as a web client.
Whenever I perform HTTP client's GET request, I get connection refused but it works before starting the web server.
Can someone please tell me if its possible to use esp32 in both as server and client configuration ?
Thanks
_
Hasenradball
@hasenradball
@tobozo what to do?
tobozo
@tobozo
@hasenradball if you have an ENC28J60 then check the example in the library, it should work out of the box.
matthewgerges
@matthewgerges:matrix.org
[m]
Hi all, I'm having a little bit of trouble with adding a library from GitHub when setting up Arduino as an ESP-IDF component. After following the instructions: https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf\_component.html to build my code in Arduino as an esp-idf component, I quickly came to the realization that libraries such as OneWire.h and ESPAsyncWebServer.h were not supported in this framework. So I went to GitHub, downloaded these libraries and added them under components/arduino/libraries. However, after doing so and trying to build my project again using idf.py build in the esp-idf terminal within VSCode, the compilation terminated because it could not find the file or directory. I tried inserting the library in a different way inside my project by adding it as a git submodule but that resulted in the same error. I then tried adding the relative path in the #include statement using "../components/arduino/espasyncwebserver-master/espasyncwebserver.h" and the main.cpp folder compiled but the actual .h file had a bunch of unresolved include statements also. Any idea on how to fix the issue?
lbernstone
@lbernstone
It goes into your CMakeLists.txt
Umer Arshad
@umerm64

Hello everyone
I am trying to use one esp32 as a web server as well as a web client.
Whenever I perform HTTP client's GET request, I get connection refused but it works before starting the web server.
Can someone please tell me if its possible to use esp32 in both as server and client configuration ?
Thanks
_

Hey Everyone.
Any comments on this please ?

lbernstone
@lbernstone
Sure. It is possible to use esp32 as both a web server and client.
Umer Arshad
@umerm64
I am trying to do it but when webserver is up, the HTTPClient returns connection refused. Any idea why that might be ?? @lbernstone
lbernstone
@lbernstone
No. Enable verbose logging on the esp32. Make sure it is trying to make the connection on the server and see if there is a log that show the failure on that side. Connection refused means the server denied the http request.
matthewgerges
@matthewgerges:matrix.org
[m]
What would I put in my cmakelists.txt and which cmakelists.txt do I put it in. Can you direct me to the right place or give me a concrete example?
(There are 2 camkes)
*cmakes
matthewgerges
@matthewgerges:matrix.org
[m]

Thank you, putting it in the second cmake file link you provided works. However, now I'm having trouble calling functions defined in .cpp files I wrote when I call them inside main.cpp. Here's how my cmakelists.txt inside main looks: ```idf_component_register(
SRCS "main.cpp oneWireHelper.cpp"
INCLUDE_DIRS "."
)

``` And this is how my cmakelists.txt inside the root folder of my project looks: # The following lines of boilerplate have to be in your project's

CMakeLists in this exact order for cmake to work correctly

cmake_minimum_required(VERSION 3.5)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(LibBuilderAtt2)

target_include_directories(mylib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/)

add_executable(${LibBuilderAtt2} ${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp)

target_link_libraries(${LibBuilderAtt2} mylib)``` I've commented out the things I've tried.

In other words, what I'm asking is how can I link functions from other files to my main.cpp. How can I let my compiler know these files and external functions exist?
1 reply
matthewgerges
@matthewgerges:matrix.org
[m]

oneWireHelper.cpp: ``` #include "Arduino.h"

include "oneWireHelper.h"

void OneWireFunction()
{
Serial.println("cool");
printf("Coolios\n");
byte i;
byte present = 0;
byte type_s;
byte data[9];
byte addr[8];
float celsius, fahrenheit;

if ( !ds.search(addr)) {
Serial.println("No more addresses.");
Serial.println();
ds.reset_search();
delay(250);
return;
}

Serial.print("ROM =");
for( i = 0; i < 8; i++) {
Serial.write(' ');
Serial.print(addr[i], HEX);
}

if (OneWire::crc8(addr, 7) != addr[7]) {
Serial.println("CRC is not valid!");
return;
}
Serial.println();

// the first ROM byte indicates which chip
switch (addr[0]) {
case 0x10:
Serial.println(" Chip = DS18S20"); // or old DS1820
type_s = 1;
break;
case 0x28:
Serial.println(" Chip = DS18B20");
type_s = 0;
break;
case 0x22:
Serial.println(" Chip = DS1822");
type_s = 0;
break;
default:
Serial.println("Device is not a DS18x20 family device.");
return;
}

ds.reset();
ds.select(addr);
ds.write(0x44, 1); // start conversion, with parasite power on at the end

delay(1000); // maybe 750ms is enough, maybe not
// we might do a ds.depower() here, but the reset will take care of it.

present = ds.reset();
ds.select(addr);
ds.write(0xBE); // Read Scratchpad

Serial.print(" Data = ");
Serial.print(present, HEX);
Serial.print(" ");
for ( i = 0; i < 9; i++) { // we need 9 bytes
data[i] = ds.read();
Serial.print(data[i], HEX);
Serial.print(" ");
}
Serial.print(" CRC=");
Serial.print(OneWire::crc8(data, 8), HEX);
Serial.println();

// Convert the data to actual temperature
// because the result is a 16 bit signed integer, it should
// be stored to an "int16_t" type, which is always 16 bits
// even when compiled on a 32 bit processor.
int16_t raw = (data[1] << 8) | data[0];
if (type_s) {
raw = raw << 3; // 9 bit resolution default
if (data[7] == 0x10) {
// "count remain" gives full 12 bit resolution
raw = (raw & 0xFFF0) + 12 - data[6];
}
} else {
byte cfg = (data[4] & 0x60);
// at lower res, the low bits are undefined, so let's zero them
if (cfg == 0x00) raw = raw & ~7; // 9 bit resolution, 93.75 ms
else if (cfg == 0x20) raw = raw & ~3; // 10 bit res, 187.5 ms
else if (cfg == 0x40) raw = raw & ~1; // 11 bit res, 375 ms
//// default is 12 bit resolution, 750 ms conversion time
}
celsius = (float)raw / 16.0;
fahrenheit = celsius * 1.8 + 32.0;
Serial.print(" Temperature = ");
Serial.print(celsius);
Serial.print(" Celsius, ");
Serial.print(fahrenheit);
Serial.println(" Fahrenheit");
} ```

main.cpp: ```#include "Arduino.h"

include "oneWireHelper.h"

include <OneWire.h>

// #include "00_main.h"
// #include "RTC.h"

// OneWire DS18S20, DS18B20, DS1822 Temperature Example
//
// http://www.pjrc.com/teensy/td_libs_OneWire.html
//
// The DallasTemperature library can do all this work for you!
// https://github.com/milesburton/Arduino-Temperature-Control-Library

void setup(void) {
Serial.begin(115200);
// Check_RTC();
// RTC_setup ();
// Show_RTC();
}

void loop(void) {
OneWireFunction();
}
```

OneWireHelper.h: ```#include <OneWire.h>
OneWire ds(10); // on pin 10 (a 4.7K resistor is necessary)

void OneWireFunction();
```

BTW these functions work when I have them all in the same file or when I put the definition in the header file instead of the .cpp file
Hasenradball
@hasenradball

@tobozo

@hasenradball if you have an ENC28J60 then check the example in the library, it should work out of the box.

I have no ECN28J60

Does anyone know why the ESP32 can not automatically reconnect wifi?
Andreas Merkle
@BlueAndi
I tried to rebuild the arduino v2.0.5 libs via https://github.com/espressif/esp32-arduino-lib-builder
The build is started by $ ./build.sh -t esp32 -b idf_libs -I https://github.com/espressif/esp-idf/tree/v4.4.2.
Additional I enabled the trace facility for freeRTOS. After the libraries were ready, I compared the sdkconfig with the one from pio in .platformio\packages\framework-arduinoespressif32\tools\sdk\esp32\lib and my expectation was its equal except the trace facility.
But its different for several configurations. Did I forget something?
My assumption was that pio uses the libraries from arduino v2.0.5 without any further change.
tommy1394
@tommy1394
Timer Interrupt issue Arduino ESP32 2.0.2 - Has anyone else had trouble getting this to work?
Brenton Poke
@BrentonPoke
I'm trying to use a library that itself uses the esp32 internal lib ArduinoOTA, but platformio keeps pulling this library because it has the same name: https://registry.platformio.org/libraries/jandrassy/ArduinoOTA
Brenton Poke
@BrentonPoke
Found the issue, we actually had specified that library, but not sure how to specify an esp32 internal in the library.json
Hasenradball
@hasenradball
@atanisoft Hi could you help me with my wifi problem?