Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_MeshTopologyPackets.h
Go to the documentation of this file.
1/*
2 * Author: Crownstone Team
3 * Copyright: Crownstone (https://crownstone.rocks)
4 * Date: Apr 30, 2021
5 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
6 */
7
8#pragma once
9
12
13#include <cstdint>
14
15static constexpr uint8_t MESH_TOPOLOGY_CHANNEL_COUNT = 3;
16
17struct __attribute__((packed)) mesh_topology_neighbour_rssi_uart_t {
18 uint8_t type = 0;
24 uint8_t lastSeenSecondsAgo; // How many seconds ago the sender was last seen by the receiver.
25 uint8_t msgNumber; // Number that is increased by 1 for each message.
26};
27
34struct __attribute__((packed)) mesh_topology_neighbour_research_rssi_t {
39 uint8_t standardDeviation[MESH_TOPOLOGY_CHANNEL_COUNT];
40};
static constexpr uint8_t MESH_TOPOLOGY_CHANNEL_COUNT
Definition: cs_MeshTopologyPackets.h:15
uint8_t stone_id_t
Definition: cs_Typedefs.h:23
Message format to be sent over uart.
Definition: cs_MeshTopologyPackets.h:34
stone_id_t senderId
Definition: cs_MeshTopologyPackets.h:36
stone_id_t receiverId
Definition: cs_MeshTopologyPackets.h:35
Definition: cs_MeshTopologyPackets.h:17
int8_t rssiChannel37
Definition: cs_MeshTopologyPackets.h:21
uint8_t lastSeenSecondsAgo
Definition: cs_MeshTopologyPackets.h:24
uint8_t msgNumber
Definition: cs_MeshTopologyPackets.h:25
stone_id_t senderId
Definition: cs_MeshTopologyPackets.h:20
int8_t rssiChannel38
Definition: cs_MeshTopologyPackets.h:22
int8_t rssiChannel39
Definition: cs_MeshTopologyPackets.h:23
stone_id_t receiverId
Definition: cs_MeshTopologyPackets.h:19