Search found 9 matches
- Mon Oct 06, 2025 12:57 pm
- Forum: ESP-IDF
- Topic: Implementation of Server-Sent Events (SSE) in ESP-IDF
- Replies: 12
- Views: 9626
Re: Implementation of Server-Sent Events (SSE) in ESP-IDF
httpd_socket_send(mySocketHD, mySocketFD, sse_resp, sizeof(sse_resp), 0);
One last thing: sizeof(sse_resp) should be sizeof(sse_resp)-1 because sse_resp implicitly includes a "\0" terminator which you should not send.
Of course you are right, I had overlooked that.
Thank you very much ...
- Thu Jan 30, 2025 7:15 pm
- Forum: Hardware
- Topic: ESP32-P4 eval board: Current consumption puzzling
- Replies: 0
- Views: 2568
ESP32-P4 eval board: Current consumption puzzling
Hi community (-:
I want to use the P4 board with display for a KNX house automation panel. Since it will be rarely used, the display is supposed to switch off for inactivity periods and wake up at a touch.
Today I made some power consumption measurements:
Board + display with backlight on ca. 770 ...
I want to use the P4 board with display for a KNX house automation panel. Since it will be rarely used, the display is supposed to switch off for inactivity periods and wake up at a touch.
Today I made some power consumption measurements:
Board + display with backlight on ca. 770 ...
- Thu Jan 30, 2025 6:57 pm
- Forum: Hardware
- Topic: ESP32-P4 eval board: Sleep with low power, but keep touch (of screen) active
- Replies: 5
- Views: 4605
Re: ESP32-P4 eval board: Sleep with low power, but keep touch (of screen) active
Hi MP,
no, I had to give that up - until someone more qualified will find a solution.
When the ESP32-P4 starts sleeping, the display's touch interrupt pin goes low (from 5 V it has in normal operation), and then starts to periodically send +5V signals of ca. 0.1-0.2 ms. This signals become longer ...
no, I had to give that up - until someone more qualified will find a solution.
When the ESP32-P4 starts sleeping, the display's touch interrupt pin goes low (from 5 V it has in normal operation), and then starts to periodically send +5V signals of ca. 0.1-0.2 ms. This signals become longer ...
- Mon Oct 21, 2024 9:27 am
- Forum: Hardware
- Topic: ESP32-P4 eval board: Sleep with low power, but keep touch (of screen) active
- Replies: 5
- Views: 4605
Re: ESP32-P4 eval board: Sleep with low power, but keep touch (of screen) active
Thanks chegewara, I didn't know that!
I'm still a bit at sea: What happens, when I send the ESP32-p4 to light (or better deep) sleep with the GT911? Does it get a sleep command (i.e. variant d sleep mode) as well and needs to be waken up sperately again before I can use its int-pin to trigger a ...
I'm still a bit at sea: What happens, when I send the ESP32-p4 to light (or better deep) sleep with the GT911? Does it get a sleep command (i.e. variant d sleep mode) as well and needs to be waken up sperately again before I can use its int-pin to trigger a ...
- Sat Oct 19, 2024 4:08 pm
- Forum: Hardware
- Topic: ESP32-P4 eval board: Sleep with low power, but keep touch (of screen) active
- Replies: 5
- Views: 4605
ESP32-P4 eval board: Sleep with low power, but keep touch (of screen) active
Hi there,
I've managed so far to program an SSE client with lvgl ui, which works fine, but draws ca. 780 mA of current from a 5V source. I'd like to realize a power save mode for this, meaning the screen is dark, all peripherals are powered down _except_ the touch function of the screen, i.e. the ...
I've managed so far to program an SSE client with lvgl ui, which works fine, but draws ca. 780 mA of current from a 5V source. I'd like to realize a power save mode for this, meaning the screen is dark, all peripherals are powered down _except_ the touch function of the screen, i.e. the ...
- Mon Feb 05, 2024 9:13 pm
- Forum: ESP-IDF
- Topic: Implementation of Server-Sent Events (SSE) in ESP-IDF
- Replies: 12
- Views: 9626
Re: Implementation of Server-Sent Events (SSE) in ESP-IDF
@Microcontroller: Thank you very much for the instructions, my code is now working as well!
Perfect, cheers,
Max
Perfect, cheers,
Max
- Sun Feb 04, 2024 7:48 pm
- Forum: ESP-IDF
- Topic: Implementation of Server-Sent Events (SSE) in ESP-IDF
- Replies: 12
- Views: 9626
Re: Implementation of Server-Sent Events (SSE) in ESP-IDF
@Microcontroller Many thanks a lot for your help!
However, I don't get it working (with Arduino IDE I had no problems with SSE).
The html site is transferred and executed, the /events URI gets called, and the browser receives an OK 200. But then nothings else works - the ESP32-S3 keeps sending 127 ...
However, I don't get it working (with Arduino IDE I had no problems with SSE).
The html site is transferred and executed, the /events URI gets called, and the browser receives an OK 200. But then nothings else works - the ESP32-S3 keeps sending 127 ...
- Sat Feb 03, 2024 12:22 pm
- Forum: ESP-IDF
- Topic: Implementation of Server-Sent Events (SSE) in ESP-IDF
- Replies: 12
- Views: 9626
Re: Implementation of Server-Sent Events (SSE) in ESP-IDF
I've tried that now. My html code is this, and I have to stick with this (EventSource).
<!DOCTYPE HTML>
<html>
<header>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Eventserver</title>
</header>
<body>
<hr>
<h1> Test Async Event Source</h1>
<br>
<p>Complete State ...
<!DOCTYPE HTML>
<html>
<header>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Eventserver</title>
</header>
<body>
<hr>
<h1> Test Async Event Source</h1>
<br>
<p>Complete State ...
- Mon Jan 29, 2024 12:08 pm
- Forum: ESP-IDF
- Topic: Implementation of Server-Sent Events (SSE) in ESP-IDF
- Replies: 12
- Views: 9626
Re: Implementation of Server-Sent Events (SSE) in ESP-IDF
I'd like to second this question!
What I've found so far is only this:
https://esp32.com/viewtopic.php?p=115818
https://esp32.com/viewtopic.php?t=24445#p87263
And maybe also this could help:
https://esp32.com/viewtopic.php?t=24445#p87180
But for me that has been not sufficient to achieve anything ...
What I've found so far is only this:
https://esp32.com/viewtopic.php?p=115818
https://esp32.com/viewtopic.php?t=24445#p87263
And maybe also this could help:
https://esp32.com/viewtopic.php?t=24445#p87180
But for me that has been not sufficient to achieve anything ...