Skip to content

Commit

Permalink
LocalPeer: use new limits and add RSSI field
Browse files Browse the repository at this point in the history
RSSI will be used for reporting after gateway discovery.
  • Loading branch information
DavidB137 committed Sep 24, 2024
1 parent 8ce9a94 commit 9fa42a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion include/kvik/local_peer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <chrono>
#include <cstdint>

#include "kvik/limits.hpp"
#include "kvik/local_addr.hpp"

namespace kvik
Expand Down Expand Up @@ -67,7 +68,14 @@ namespace kvik
* layers.
* Higher value means higher preference.
*/
int16_t pref = INT16_MIN;
int16_t pref = PREF_UNKNOWN;

/**
* @brief RSSI of probe response from the peer
*
* Only relevant for RF local layers.
*/
int16_t rssi = RSSI_UNKNOWN;

/**
* @brief Gateway time difference
Expand Down

0 comments on commit 9fa42a9

Please sign in to comment.