Search found 14 matches

by Marc-Aurele
Wed Apr 05, 2023 1:04 pm
Forum: General Discussion
Topic: ESP32 - Concurrent socket MQTT + TCP
Replies: 5
Views: 1698

Re: ESP32 - Concurrent socket MQTT + TCP

has someone already faced something like that ? Feel free to share any idea.

Regards,
by Marc-Aurele
Fri Mar 31, 2023 8:19 pm
Forum: General Discussion
Topic: ESP32 - Concurrent socket MQTT + TCP
Replies: 5
Views: 1698

Re: ESP32 - Concurrent socket MQTT + TCP

Here is some log when the issue occurs (with LWIP debug activated) [22:13:51:499] <0x1b>[0;32mI (34566) TCP_IP: Client sends data to the server...<0x1b>[0m␍␊ [22:13:51:505] lwip_send(60, data=0x3fc97168, size=600, flags=0x0)␍␊ [22:13:51:510] lwip_send(60) err=0 written=600␍␊ [22:13:51:510] <0x1b>[0;...
by Marc-Aurele
Fri Mar 31, 2023 7:58 pm
Forum: General Discussion
Topic: ESP32 - Concurrent socket MQTT + TCP
Replies: 5
Views: 1698

Re: ESP32 - Concurrent socket MQTT + TCP

Here is the send function : static int socket_send(const char *tag, const int sock, const char * data, const size_t len){ int to_write = len; int error_cnt = 0; while (to_write > 0) { int written = send(sock, data + (len - to_write), to_write, 0); if (written < 0 && errno != EINPROGRESS && errno != ...
by Marc-Aurele
Fri Mar 31, 2023 12:58 pm
Forum: General Discussion
Topic: ESP32 - Concurrent socket MQTT + TCP
Replies: 5
Views: 1698

Re: ESP32 - Concurrent socket MQTT + TCP

Hello, Thank you for the reply. Indeed, my tcp socket seems to be configured in non blocking mode : // Marking the socket as non-blocking int flags = fcntl(sock, F_GETFL); if (fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1) { log_socket_error(TAG, sock, errno, "Unable to set socket non blocking"); }...
by Marc-Aurele
Thu Mar 30, 2023 8:44 am
Forum: General Discussion
Topic: ESP32 - Concurrent socket MQTT + TCP
Replies: 5
Views: 1698

ESP32 - Concurrent socket MQTT + TCP

Hello When I'm using MQTT only, all is working fine. But when I want to open a additional TCP socket (just a TCP while I'm already connected with MQTT), I can connect and send some data but after a while, my tcp sending function returns -1 continuously (errno = 11 : EWOULDBLOCK or EAGAIN) (this line...
by Marc-Aurele
Fri Feb 08, 2019 3:37 pm
Forum: ESP-IDF
Topic: HID : "Configure physical keyboard" message
Replies: 0
Views: 1905

HID : "Configure physical keyboard" message

Hello, I started to work with the HID project example in the esp-idf folder. I'm facing an issue when i pair a phone to my HID device, indeed when the device is paired, i can see the following message on my phone "Configure physical keyboard". I would like this message is not diplayed but i don't kn...
by Marc-Aurele
Thu Feb 07, 2019 4:07 pm
Forum: General Discussion
Topic: HID project example
Replies: 0
Views: 2468

HID project example

Hello, I'm starting to work with the HID project example provided with ESP-IDF. All is working fine, i can use the HID profil to change the the music track. But, the only issue is that my device is seen as a keyboard onto my phone. Is there a way to not being as a mouse or a keyboard with the HID pr...
by Marc-Aurele
Mon Jan 28, 2019 12:55 pm
Forum: ESP-IDF
Topic: A2DP : how to not use the audio channel ?
Replies: 0
Views: 1779

A2DP : how to not use the audio channel ?

Hello, I'm using the A2DP example project on my ESP32 (a2dp_gatts_coex) but i would like to not use the audio channel because music will be streamed onto another device from my phone. I want mainly use the AVRCP over A2DP if it is possible.to do this ? Here is what i want : ESP32 -------------> Phon...
by Marc-Aurele
Fri Jan 25, 2019 10:27 am
Forum: ESP-IDF
Topic: Need help with AVRCP
Replies: 0
Views: 1844

Need help with AVRCP

Hello,

I want to use AVRCP on my ESP32 without A2DP. For now, this is not the case with the last version of esp-idf. AVRCP needs to initialize the A2DP profile. I would like to know if someone could advise me on how to proceed to implement my own AVRCP profile.
Thank you in advance,

Regards,
by Marc-Aurele
Wed Jan 23, 2019 3:40 pm
Forum: ESP-IDF
Topic: AVRCP without A2DP ?
Replies: 2
Views: 3530

Re: AVRCP without A2DP ?

Has someone already found out how to solve this issue ?

Feel free to share :)

Best regards,

Aurélien