Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_MeshUtil.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Mar 11, 2020
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
10extern "C" {
11#include <access.h>
12
13#include "nrf_mesh.h"
14}
15
19namespace MeshUtil {
20
24int8_t getRssi(const nrf_mesh_rx_metadata_t* metaData);
25
26uint8_t getChannel(const nrf_mesh_rx_metadata_t* metaData);
27
31MeshMsgEvent fromAccessMessageRX(const access_message_rx_t& accessMsg);
32
36void printMeshAddress(const char* prefix, const nrf_mesh_address_t* addr);
37
38} // namespace MeshUtil
Definition: cs_MeshMsgEvent.h:71
Mesh utils without dependencies on mesh SDK.
Definition: cs_MeshCommon.h:17
int8_t getRssi(const nrf_mesh_rx_metadata_t *metaData)
Get the RSSI from meta data.
void printMeshAddress(const char *prefix, const nrf_mesh_address_t *addr)
Print a mesh address.
MeshMsgEvent fromAccessMessageRX(const access_message_rx_t &accessMsg)
Factory method because a constructor would pollute the struct.
uint8_t getChannel(const nrf_mesh_rx_metadata_t *metaData)