Client for APRS communication.
More...
#include <APRS.h>
|
| | APRSClient (AX25Client *ax) |
| | Constructor for "classic" mode using AX.25/AFSK.
|
| | APRSClient (PhysicalLayer *phy) |
| | Constructor for LoRa mode.
|
| int16_t | begin (char sym, const char *callsign=NULL, uint8_t ssid=0, bool alt=false) |
| | Initialization method.
|
| int16_t | sendPosition (char *destCallsign, uint8_t destSSID, const char *lat, const char *lon, const char *msg=NULL, const char *time=NULL) |
| | Transmit position.
|
| int16_t | sendMicE (float lat, float lon, uint16_t heading, uint16_t speed, uint8_t type, const uint8_t *telem=NULL, size_t telemLen=0, const char *grid=NULL, const char *status=NULL, int32_t alt=RADIOLIB_APRS_MIC_E_ALTITUDE_UNUSED) |
| | Transmit position using Mic-E encoding.
|
| int16_t | sendFrame (char *destCallsign, uint8_t destSSID, char *info) |
| | Transmit generic APRS frame.
|
| void | useRepeaters (char **repeaterCallsigns, uint8_t *repeaterSSIDs, uint8_t numRepeaters) |
| | Set the repeater callsigns and SSIDs to be used by the frames sent by sendPosition, sendMicE or sendFrame.
|
| void | dropRepeaters () |
| | Stop using repeaters.
|
Client for APRS communication.
◆ APRSClient() [1/2]
Constructor for "classic" mode using AX.25/AFSK.
- Parameters
-
| ax | Pointer to the instance of AX25Client to be used for APRS. |
◆ APRSClient() [2/2]
Constructor for LoRa mode.
- Parameters
-
| phy | Pointer to the wireless module providing PhysicalLayer communication. |
◆ begin()
| int16_t APRSClient::begin |
( |
char | sym, |
|
|
const char * | callsign = NULL, |
|
|
uint8_t | ssid = 0, |
|
|
bool | alt = false ) |
Initialization method.
- Parameters
-
| sym | APRS symbol to be displayed. |
| callsign | Source callsign. Required and only used for APRS over LoRa, ignored in classic mode. |
| ssid | Source SSID. Only used for APRS over LoRa, ignored in classic mode, defaults to 0. |
| alt | Whether to use the primary (false) or alternate (true) symbol table. Defaults to primary table. |
- Returns
- Status Codes
◆ dropRepeaters()
| void APRSClient::dropRepeaters |
( |
| ) |
|
◆ sendFrame()
| int16_t APRSClient::sendFrame |
( |
char * | destCallsign, |
|
|
uint8_t | destSSID, |
|
|
char * | info ) |
Transmit generic APRS frame.
- Parameters
-
| destCallsign | Destination station callsign. |
| destSSID | Destination station SSID. |
| info | AX.25 info field contents. |
- Returns
- Status Codes
◆ sendMicE()
| int16_t APRSClient::sendMicE |
( |
float | lat, |
|
|
float | lon, |
|
|
uint16_t | heading, |
|
|
uint16_t | speed, |
|
|
uint8_t | type, |
|
|
const uint8_t * | telem = NULL, |
|
|
size_t | telemLen = 0, |
|
|
const char * | grid = NULL, |
|
|
const char * | status = NULL, |
|
|
int32_t | alt = RADIOLIB_APRS_MIC_E_ALTITUDE_UNUSED ) |
Transmit position using Mic-E encoding.
- Parameters
-
| lat | Geographical latitude, positive for north, negative for south. |
| lon | Geographical longitude, positive for east, negative for west. |
| heading | Heading in degrees. |
| speed | Speed in knots. |
| type | Mic-E message type - see Mic-E message types.. |
| telem | Pointer to telemetry array (either 2 or 5 bytes long). NULL when telemetry is not used. |
| telemLen | Telemetry length, 2 or 5. 0 when telemetry is not used. |
| grid | Maidenhead grid locator. NULL when not used. |
| status | Status message to send. NULL when not used. |
| alt | Altitude to send. RADIOLIB_APRS_MIC_E_ALTITUDE_UNUSED when not used. |
◆ sendPosition()
| int16_t APRSClient::sendPosition |
( |
char * | destCallsign, |
|
|
uint8_t | destSSID, |
|
|
const char * | lat, |
|
|
const char * | lon, |
|
|
const char * | msg = NULL, |
|
|
const char * | time = NULL ) |
Transmit position.
- Parameters
-
| destCallsign | Destination station callsign. |
| destSSID | Destination station SSID. |
| lat | Latitude as a null-terminated string. |
| lon | Longitude as a null-terminated string. |
| msg | Message to be transmitted. Defaults to NULL (no message). |
| time | Position timestamp. Defaults to NULL (no timestamp). |
- Returns
- Status Codes
◆ useRepeaters()
| void APRSClient::useRepeaters |
( |
char ** | repeaterCallsigns, |
|
|
uint8_t * | repeaterSSIDs, |
|
|
uint8_t | numRepeaters ) |
Set the repeater callsigns and SSIDs to be used by the frames sent by sendPosition, sendMicE or sendFrame.
- Parameters
-
| repeaterCallsigns | Array of repeater callsigns in the form of null-terminated C-strings. |
| repeaterSSIDs | Array of repeater SSIDs. |
| numRepeaters | Number of repeaters, maximum is 8. |
- Returns
- Status Codes
The documentation for this class was generated from the following files:
- src/protocols/APRS/APRS.h
- src/protocols/APRS/APRS.cpp