Update Radiolib version to 7.1.0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user