Search found 15 matches

by benedito821
Mon Aug 12, 2024 10:18 am
Forum: ESP-IDF
Topic: esp_http_client POST'ing a null pointer
Replies: 3
Views: 1061

Re: esp_http_client POST'ing a null pointer

I finally figure out how to solve this issue: I have deleted apache and my JavaScript code and written a code in node.js to do the job. After some modifications in my ESP32 code I got it to work. Thank you for the hint.
by benedito821
Thu Aug 08, 2024 3:06 pm
Forum: ESP-IDF
Topic: esp_http_client POST'ing a null pointer
Replies: 3
Views: 1061

Re: esp_http_client POST'ing a null pointer

My intention was to print the data on a second client(the web page) , assuming that the sent user id was forwarded on the background to my javascript code. I'm a newbie in js, so I tried xhr.open('GET', requestURL); but it didn't work as well. you have/need some code (PHP,...) on the webserver to ac...
by benedito821
Thu Aug 08, 2024 10:21 am
Forum: ESP-IDF
Topic: esp_http_client POST'ing a null pointer
Replies: 3
Views: 1061

esp_http_client POST'ing a null pointer

Hello, I'm trying to perform a POST operation from my ESP32-WROOM-32 running the esp_http_client example to a web server running on Windows 11 using apache . I wrote sobe JavaScript script to handle the JSON post_data in the backend and a basic html code to print it on the web page. The problem is t...
by benedito821
Sat Sep 23, 2023 12:52 pm
Forum: General Discussion
Topic: Writing to a memory address using I2C
Replies: 2
Views: 1632

Writing to a memory address using I2C

Is there a way of writing to a specific memory address using the ESP32 I2C driver? I could find the functions i2c_master_write_to_device and i2c_master_read_from_device but they don't take into consideration the memory address of the device.
by benedito821
Tue Sep 19, 2023 9:22 am
Forum: General Discussion
Topic: Finding timers on ESP32 WROOM 32
Replies: 5
Views: 4715

Re: Finding timers on ESP32 WROOM 32

The datasheet doesn't explicitly name all possible functions for all IO pins, because most peripherals can be routed to almost any IO pin. Use ledc_channel_config() to select an IO pin that is convenient for you. (Btw, "TRM" is short for the "Technical Reference Manual" . The datasheets are basical...
by benedito821
Sun Sep 17, 2023 6:22 am
Forum: General Discussion
Topic: Finding timers on ESP32 WROOM 32
Replies: 5
Views: 4715

Re: Finding timers on ESP32 WROOM 32

I'm trying to use LEDC to get some PWM to drive an LED but it seems not working.
On the datasheet I see that GPIO2 supports ADC2_CH2, TOUCH2, RTC_GPIO12, HSPIWP, HS2_DATA0,
SD_DATA0 - nothing similar to a TRM or MCPWM.
by benedito821
Sat Sep 16, 2023 5:46 pm
Forum: General Discussion
Topic: Finding timers on ESP32 WROOM 32
Replies: 5
Views: 4715

Finding timers on ESP32 WROOM 32

Hello, I've got the ESP32-WROOM-32 datasheet and trying to figure out on which pins the timers channels are connected to (as I was used to on ST devices ) , but I can't even find out the word timer on the datasheet. Is it called differently on ESP chips?
by benedito821
Tue Mar 21, 2023 7:44 am
Forum: General Discussion
Topic: Hosting a new file on the https server using simple_ota_example
Replies: 1
Views: 1678

Hosting a new file on the https server using simple_ota_example

I have successfully runned the simple_ota_example , hosting the blink.bin example file on the server. But how can I host a new file? Do I need to follow all the steps from scratch(generate certs,set the URL on menuconfig,rebuild and reflash,restart the server)? I've tried to only run the server insi...
by benedito821
Fri Feb 03, 2023 5:31 pm
Forum: ESP-IDF
Topic: Setup ESP-IDF Tools 2.3 ended up with error code 128
Replies: 4
Views: 4276

Re: Setup ESP-IDF Tools 2.3 ended up with error code 128

Running the installer using administrator rights solved the issue.
by benedito821
Sat Apr 03, 2021 12:33 pm
Forum: General Discussion
Topic: include could not find load file
Replies: 0
Views: 1595

include could not find load file

Hello! I have reinstalled the esp-idf extension on other directory (called esp-idf). It usually is installed on directory called esp. The problem is that when I try to run the hell_world example this error appears: > Executing task: cmake -G Ninja .. < CMake Error at CMakeLists.txt:5 (include): incl...