SPP profile reconnect

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
FeTa_4356966
Level 3
Level 3
Distributor - Zenitron(GC)
50 sign-ins 10 likes given 25 sign-ins

Hi

I have paired the Bluetooth SPP profile with smartphone.
After disconnection, can I initiate a reconnection from the device side?
Can wiced_bt_spp_connect() do such a function?

Using A2DP, the device can initiate a reconnection.
SPP profile can only be reconnect by smartphone?

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

yes. wiced_bt_spp_connect opens up a connection to SPP server. This will call spp_sdp_start_discovery which will initiate a service discovery by calling wiced_bt_sdp_service_search_attribute_request.

Please check https://github.com/Infineon/mtb-example-btsdk-rfcomm-spp

 

Thanks,

-Dheeraj.P.K

View solution in original post

0 Likes
1 Reply
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

yes. wiced_bt_spp_connect opens up a connection to SPP server. This will call spp_sdp_start_discovery which will initiate a service discovery by calling wiced_bt_sdp_service_search_attribute_request.

Please check https://github.com/Infineon/mtb-example-btsdk-rfcomm-spp

 

Thanks,

-Dheeraj.P.K

0 Likes