Replies: 1 comment
-
Sorry, know this is old, let me know if you figured it out well. It looks like the name is generated here: SerialBT.cpp? spp_create_sdp_record(_spp_service_buffer, 0x10001, RFCOMM_SERVER_CHANNEL, "PicoW Serial");
sdp_register_service(_spp_service_buffer);
gap_discoverable_control(1);
gap_ssp_set_io_capability(SSP_IO_CAPABILITY_DISPLAY_YES_NO);
gap_set_local_name("PicoW Serial 00:00:00:00:00:00"); So you could try editing the library files? I don't know, I'm still trying to figure this out myself |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking at a way of being able to specify the local name for when using the Bluetooth Classic Over Serial example and to also extract/determine the MAC address being added to the local name (it replaces the zero's in the function).
I've tried adding a parameter to the begin function within SerialBT.cpp and SerialBT.h, but then ran into trouble further down the line when compiling the code. I believe it is due to the function override parameters conflicting. I can see that within the PicoBluetoothHID.h a function called start is used and has a local name as an entry parameter and it doesn't use the begin function.
The reasoning for wanting such functionality, is to :
Any pointers (pun intended) on how to achieve this, would be gratefully received (if this functionality could be incorporated in a release, that would be much better - don't want to lose functionality if the library is updated).
Beta Was this translation helpful? Give feedback.
All reactions