ESP32 Bluetooth SPP with bidirectional communication (send and receive)

suriyaelango
Posts: 2
Joined: Mon Mar 11, 2019 2:07 pm

Re: ESP32 Bluetooth SPP with bidirectional communication (send and receive)

Postby suriyaelango » Mon Mar 11, 2019 2:12 pm

Hi,
Can someone please tell me if Bluetooth SPP supports multiple clients in case of bi-directional communication? If yes, implementation code, please.

gunar.kroeger
Posts: 42
Joined: Fri Jul 27, 2018 6:48 pm

Re: ESP32 Bluetooth SPP with bidirectional communication (send and receive)

Postby gunar.kroeger » Tue Mar 12, 2019 4:20 pm

suriyaelango wrote: Hi,
Can someone please tell me if Bluetooth SPP supports multiple clients in case of bi-directional communication? If yes, implementation code, please.
It does. You will have to save the connection handle from incoming clients and direct the messages with esp_spp_write to the correct handle

suriyaelango
Posts: 2
Joined: Mon Mar 11, 2019 2:07 pm

Re: ESP32 Bluetooth SPP with bidirectional communication (send and receive)

Postby suriyaelango » Mon Mar 18, 2019 7:57 am

The esp_spp_write function is an IDF function. Any chance it works with the Arduino framework for ESP32?

Who is online

Users browsing this forum: No registered users and 23 guests