bt_le_stop_advertisement()

Stop low energy advertisements.

Synopsis:

#include <btapi/btle.h>
 
int bt_le_stop_advertisement()

Since:

BlackBerry 10.2.0

Arguments:

Library:

libbtapi (For the qcc command, use the -l btapi option to link against this library)

Description:

Returns:

EOK on successful stop of low energy advertisements, -1 if an error occurred with the errno value set. These are some of the error codes that can be returned:
  • EAGAIN: The link to the Bluetooth stack is unavailable. You can try again.
  • EBUSY: The stack is currently busy or there is an active connection or connection request.
  • ESRVRFAULT: An internal error has occurred.