Update Radiolib version to 7.1.0

This commit is contained in:
lewisxhe
2024-12-20 10:30:28 +08:00
parent ec34aea9f7
commit 7f7f0022fe
185 changed files with 5193 additions and 2116 deletions
+18
View File
@@ -260,6 +260,12 @@ int16_t APRSClient::sendFrame(char* destCallsign, uint8_t destSSID, char* info)
RADIOLIB_AX25_CONTROL_UNNUMBERED_FRAME,
RADIOLIB_AX25_PID_NO_LAYER_3, const_cast<char*>(info));
// optionally set repeaters
if(this->repCalls && this->repSSIDs && this->numReps) {
int16_t state = frameUI.setRepeaters(this->repCalls, this->repSSIDs, this->numReps);
RADIOLIB_ASSERT(state);
}
return(axClient->sendFrame(&frameUI));
} else if(this->phyLayer != nullptr) {
@@ -276,4 +282,16 @@ int16_t APRSClient::sendFrame(char* destCallsign, uint8_t destSSID, char* info)
return(RADIOLIB_ERR_WRONG_MODEM);
}
void APRSClient::useRepeaters(char** repeaterCallsigns, uint8_t* repeaterSSIDs, uint8_t numRepeaters) {
this->repCalls = repeaterCallsigns;
this->repSSIDs = repeaterSSIDs;
this->numReps = numRepeaters;
}
void APRSClient::dropRepeaters() {
this->repCalls = NULL;
this->repSSIDs = NULL;
this->numReps = 0;
}
#endif
+20
View File
@@ -144,6 +144,21 @@ class APRSClient {
*/
int16_t sendFrame(char* destCallsign, uint8_t destSSID, char* info);
/*!
\brief Set the repeater callsigns and SSIDs to be used by the frames sent by sendPosition, sendMicE or sendFrame.
\param repeaterCallsigns Array of repeater callsigns in the form of null-terminated C-strings.
\param repeaterSSIDs Array of repeater SSIDs.
\param numRepeaters Number of repeaters, maximum is 8.
\returns \ref status_codes
*/
void useRepeaters(char** repeaterCallsigns, uint8_t* repeaterSSIDs, uint8_t numRepeaters);
/*!
\brief Stop using repeaters.
\returns \ref status_codes
*/
void dropRepeaters();
#if !RADIOLIB_GODMODE
private:
#endif
@@ -153,6 +168,11 @@ class APRSClient {
// default APRS symbol (car)
char symbol = '>';
char table = '/';
// repeaters
char** repCalls = NULL;
uint8_t* repSSIDs = NULL;
uint8_t numReps = 0;
// source callsign when using APRS over LoRa
char src[RADIOLIB_AX25_MAX_CALLSIGN_LEN + 1] = { 0 };