New answers tagged

1

This is hard to debug from afar... Your sketch looks correct (hardly surprising, since it's just the Blink example). But I'd try to use IO18/SPI_CLK for clock and IO23/SPI_MOSI for data, as these are the hardware SPI pins of the ESP32. It might very well be that using these pins removes the warning about hardware SPI. As I don't know all the variants of a ...


1

The ESP8266 has no EEPROM. Instead the flash memory is partitioned into different areas for different purposes. One of those areas is set aside for "EEPROM Emulation" data. To upload to that area you first need to know where that area is in the flash memory, and that is dependent on what partitioning scheme you are using at the moment. Once you have ...


0

I found the issue. After moving SubscriptionHandler handlers[] = ... out of the setup()-method, the function calls work. Perhaps handlers gets overwritten after leaving the setupfunction scope. Could anyone validate my suspected reason?


1

The issue is that the Serial port on the ESP32-WROOM setup is not like like on the Arduino. It seems that the initialisation will 'miss' the USB enumeration after reboot. To fix this add a delay in your setup() function of 10 to 15-seconds before initialising the serial. For example: void setup() { delay(10000); Serial.begin(115200); Serial....


0

Since I made a PCB prototype, I would avoid to add some wires and cut the traces, so I would ask if I could use these pins (GPIO7 and GPIO8) as SDA and SCL. No, you can't. Those pins are used by the internal flash chip. If you connect things to them you will end up not being able to read the flash and thus won't be able to run any code. In other words, the ...


2

This is not a question of image format but of what format c accepts data in. What you have is a python representation of binary data in hexadecimal encoding. That can only be used with python. C represents hexadecimal values by prefixing them with 0x. You will have to change your python code to output each byte individually and prefix it with 0x and ...


1

The information is available on SDK level. If you include #include "user_interface.h", you can use function wifi_station_get_connect_status(). It returns one of: STATION_GOT_IP STATION_NO_AP_FOUND STATION_CONNECT_FAIL STATION_WRONG_PASSWORD STATION_IDLE The WiFi.status() function uses function wifi_station_get_connect_status(), but returns ...


0

Your code looks good. I2C configuration is default which depends on your board manager. Then your wiring may be wrong. Using a multimeter to check supply voltage on the BH1750 module. It should be 3.3V Using a multimeter to check the connection between the BH1750 module with ESP32. Difference ESP32 vendor may provide a difference I2C pinout. Make sure you ...


Top 50 recent answers are included