Skip to content

Instantly share code, notes, and snippets.

@mohsenoid
Last active April 26, 2020 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohsenoid/9cf1dfb65f707cc65f59c83cb0d71e32 to your computer and use it in GitHub Desktop.
Save mohsenoid/9cf1dfb65f707cc65f59c83cb0d71e32 to your computer and use it in GitHub Desktop.
CloseToMe - Start Advertising
val scanResponse = AdvertiseData.Builder()
.addServiceUuid(userUuid.toParcelUuid())
.build()
bluetoothAdvertiser.startAdvertising(
advertiseSettings,
advertiseData,
scanResponse,
advertiseCallback
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment