Bluetooth (HC-06) device's name change not being updated immediately in Android

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

May 5, 2016 1:03:04 PM via Website

I'm currently developing a bluetooth controller app in android and in that I need to change the default name "HC-06" of the device as per my wish. I achieved it by sending AT commands from my app to the hc-06 module which is connected to an arduino board. Inorder to get the updated device name, it needs to be unpaired and scanned again.

However when the device is discovered, it still retains the old name and gets refreshed only when it is selected to pair again. The name gets updated when the pairing request menu pops up.

But I want to get the updated device name during the scan itself. Saw some posts regarding caching of bluetooth names and "fetchUuidsWithSdp". But it didn't work out. How to properly use the fetchUuidsWithSdp method ? or is there any other solution?