4.2.5. stop_advertising¶
-
bluetooth.stop_advertising(sock)¶ Try to stop advertising a bluetooth service.
This function instructs the local SDP server to stop advertising the service associated with socket. You should typically call this right before you close socket.
Parameters: sock (BluetoothSocket) – The BluetoothSocketto stop advertising the service on.Raises: BluetoothError– When SDP fails to stop advertising for some reason.