Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_MeshScanner.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Mar 10, 2020
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
10extern "C" {
11#include <nrf_mesh.h>
12}
13
20public:
26 const static uint16_t MIN_SCHEDULER_FREE = SCHED_QUEUE_SIZE / 2;
27
31 void onScan(const nrf_mesh_adv_packet_rx_data_t* scanData);
32};
Class that handles scans from the mesh.
Definition: cs_MeshScanner.h:19
static const uint16_t MIN_SCHEDULER_FREE
Don't dispatch scans when the CPU is busy.
Definition: cs_MeshScanner.h:26
void onScan(const nrf_mesh_adv_packet_rx_data_t *scanData)
Handle a scan by the mesh, and dispatch scanned device event.
#define SCHED_QUEUE_SIZE
Maximum number of events in the scheduler queue.
Definition: cs_Config.h:64