add ability to fetch repeater neighbours via binary request

This commit is contained in:
liamcottle 2025-09-26 17:51:51 +12:00
parent 23814a56ee
commit c90bf3ddd9
2 changed files with 155 additions and 0 deletions

View file

@ -48,6 +48,8 @@ class Constants {
// todo set device pin command
SetOtherParams: 38,
SendTelemetryReq: 39,
SendBinaryReq: 50,
}
static ResponseCodes = {
@ -83,6 +85,7 @@ class Constants {
TraceData: 0x89,
NewAdvert: 0x8A, // when companion is set to manually add contacts
TelemetryResponse: 0x8B,
BinaryResponse: 0x8C,
}
static ErrorCodes = {
@ -112,6 +115,13 @@ class Constants {
SignedPlain: 2,
}
static BinaryRequestTypes = {
GetTelemetryData: 0x03, // #define REQ_TYPE_GET_TELEMETRY_DATA 0x03
GetAvgMinMax: 0x04, // #define REQ_TYPE_GET_AVG_MIN_MAX 0x04
GetAccessList: 0x05, // #define REQ_TYPE_GET_ACCESS_LIST 0x05
GetNeighbours: 0x06, // #define REQ_TYPE_GET_NEIGHBOURS 0x06
}
}
export default Constants;