Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
MeshScanner Class Reference

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...
 

Detailed Description

Class that handles scans from the mesh.

Copies the data into a bluenet struct and dispatches an event.

Member Function Documentation

◆ onScan()

void MeshScanner::onScan ( const nrf_mesh_adv_packet_rx_data_t *  scanData)

Handle a scan by the mesh, and dispatch scanned device event.

Member Data Documentation

◆ MIN_SCHEDULER_FREE

const uint16_t MeshScanner::MIN_SCHEDULER_FREE = SCHED_QUEUE_SIZE / 2
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.


The documentation for this class was generated from the following file: