stopAdvertising

abstract suspend fun stopAdvertising()

Stops advertising a local endpoint. Should be called after calling startAdvertising, as soon as the application no longer needs to advertise itself or goes inactive. Payloads can still be sent to connected endpoints after advertising ends.