Search found 67 matches
- Wed Jun 15, 2022 7:38 am
- Forum: ESP-IDF
- Topic: HTTP content length -1
- Replies: 2
- Views: 2309
Re: HTTP content length -1
Thanks for the explanation. I've changed the code to use the data length: case HTTP_EVENT_ON_DATA: ESP_LOGI(TAG, "HTTP_EVENT_ON_DATA, len=%d, chunked: %d", evt->data_len, esp_http_client_is_chunked_response(evt->client)); /* * Check for chunked encoding is added as the URL for chunked encoding used ...
- Tue Jun 14, 2022 6:55 pm
- Forum: ESP-IDF
- Topic: HTTP content length -1
- Replies: 2
- Views: 2309
HTTP content length -1
Hi, I am trying to connect to a webpage using username and password and the esp_http_client_example.c. The webserver responds with content length of -1 and I don't know how to proceed. My end goal is to login to the webpage (it's a local energy meter) and read the HTML. The debug log is below. I'll ...
- Tue Jun 14, 2022 2:13 pm
- Forum: ESP-IDF
- Topic: Making an https file downloder function
- Replies: 2
- Views: 3620
Re: Making an https file downloder function
@boarchuz, how do you manage to parse a segmented file on-the-fly?
I am faced with the same situation, where I need to use regex to find a value in HTML, which is way too big for fitting into RAM.
I am faced with the same situation, where I need to use regex to find a value in HTML, which is way too big for fitting into RAM.
- Mon Jun 13, 2022 5:42 am
- Forum: ESP-IDF
- Topic: http_client and heap poisoning
- Replies: 0
- Views: 1233
http_client and heap poisoning
I am trying to use http_client for downloading files in a RAM buffer. My code allocates a user_data buffer for the esp_http_client_config_t handle, however my application crashes due to heap poisoning: CORRUPT HEAP: Bad tail at 0x3ffdb255. Expected 0xbaad5678 got 0x6c617265 assert failed: multi_heap...
- Wed Jun 01, 2022 11:44 am
- Forum: ESP-IDF
- Topic: SPI polling transaction fails because previous is not terminated
- Replies: 4
- Views: 3567
Re: SPI polling transaction fails because previous is not terminated
Thanks for the quick reply, the problem seems the same.
The code breaks at the following line of spi_master.c:
I'll try the proposed workaround.
The code breaks at the following line of spi_master.c:
Code: Select all
assert(handle == get_acquiring_dev(host));
- Wed Jun 01, 2022 6:12 am
- Forum: ESP-IDF
- Topic: SPI polling transaction fails because previous is not terminated
- Replies: 4
- Views: 3567
SPI polling transaction fails because previous is not terminated
I have a board with three SPI devices on Host 3 (VSPI), using pins 18 for clock, 23 for MOSI, and 19 for MISO. Clock is 10 MHz: W5500 Etherned module, CS 33 SD card, CS 25 MPC23S08 GPIO expander, CS 32 My code begins with initializing the SD card, then the expander and finally the Ethernet chip. I o...
- Tue May 31, 2022 6:17 am
- Forum: Sample Code
- Topic: MPC23S08 driver
- Replies: 1
- Views: 3905
MPC23S08 driver
A generic MPC23S08 driver with example for espidf here.
- Fri May 27, 2022 6:07 am
- Forum: General Discussion
- Topic: W5500 and SD card on same SPI host
- Replies: 3
- Views: 2856
W5500 and SD card on same SPI host
I have a custom board which has a W5500 and SD card on the same SPI host. Pins are: SPI Host - 2 SPI Speed - 12 MHz SCLK - IO 18 - NO PULL-UP MOSI - IO 23 - NO PULL-UP MISO - IO 19 - NO PULL-UP W5500 CS - IO 33 - PULLED UP W5500 INT - IO 13 - PULLED UP W5500 RST - IO 12 - PULLED DOWN SD Card CS - IO...
- Sat Apr 30, 2022 2:14 pm
- Forum: General Discussion
- Topic: Modbus RTU and TCP
- Replies: 3
- Views: 2308
Re: Modbus RTU and TCP
Thanks for the link, haven't tried that. I am using espidf, not Arduino, it would probably not be a solution.
- Sat Apr 30, 2022 6:46 am
- Forum: General Discussion
- Topic: Modbus RTU and TCP
- Replies: 3
- Views: 2308
Modbus RTU and TCP
I'm looking for recommendation for Modbus TCP master library for ESP32. I can't use the embedded API, as I am already using Modbus RTU.
Thanks
Thanks