Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Class that handles scans from the mesh. More...
#include <cs_MeshScanner.h>
Public Member Functions | |
void | onScan (const nrf_mesh_adv_packet_rx_data_t *scanData) |
Handle a scan by the mesh, and dispatch scanned device event. More... | |
Static Public Attributes | |
static const uint16_t | MIN_SCHEDULER_FREE = SCHED_QUEUE_SIZE / 2 |
Don't dispatch scans when the CPU is busy. More... | |
Class that handles scans from the mesh.
Copies the data into a bluenet struct and dispatches an event.
void MeshScanner::onScan | ( | const nrf_mesh_adv_packet_rx_data_t * | scanData | ) |
Handle a scan by the mesh, and dispatch scanned device event.
|
static |
Don't dispatch scans when the CPU is busy.
This is measured by how full the scheduler queue is. Only dispatch when there is at least N free space in the queue.