Scanner abstraction for NimBLE. More...
Scanner abstraction for NimBLE.
Definition in file nimble_scanner.h.
#include <stdint.h>
#include "host/ble_hs.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | nimble_scanner_cb) (uint8_t type, const ble_addr_t *addr, int8_t rssi, const uint8_t *ad, size_t ad_len) |
Callback signature triggered by this module for each discovered advertising packet. More... | |
Enumerations | |
enum | { NIMBLE_SCANNER_OK = 0, NIMBLE_SCANNER_SCANNING = 1, NIMBLE_SCANNER_STOPPED = 2, NIMBLE_SCANNER_ERR = -1 } |
Return values used by this submodule. | |
Functions | |
int | nimble_scanner_init (const struct ble_gap_disc_params *params, nimble_scanner_cb disc_cb) |
Initialize the scanner module. More... | |
int | nimble_scanner_start (void) |
Start scanning using timing parameters configured on initialization. | |
void | nimble_scanner_stop (void) |
Stop scanning. | |
int | nimble_scanner_status (void) |
Get the current scanning status. More... | |