APRS-IS client responsible for sending and receiving APRS frames.
More...
#include <APRSISClient.h>
|
| void | setIncomingRelayEnabled (bool enabled) |
| | Enable or disable persistent inbound message relay.
|
|
void | setSkipPercent (float skipPercent) |
|
void | setServer (QString host, quint16 port) |
|
void | setPaused (bool paused) |
|
void | setLocalStation (QString mycall, QString passcode) |
| void | enqueueSpot (QString by_call, QString from_call, QString grid, QString comment) |
| | Enqueue a spot frame for APRS-IS.
|
| void | enqueueThirdParty (QString by_call, QString from_call, QString text) |
| | Enqueue a third-party message frame for APRS-IS.
|
| void | enqueueMessageAck (QString from_call, QString to_call, QString messageId) |
| | Enqueue a standard APRS message ACK frame.
|
|
void | sendReports () |
|
| void | messageReceived (QString from, QString to, QString message, QString messageId) |
| | Emitted when a parsed APRS-IS message is received.
|
|
| | APRSISClient (QString host, quint16 port, QObject *parent=nullptr) |
| | Construct a new APRSISClient object.
|
|
bool | isPasscodeValid () |
| void | enqueueRaw (QString aprsFrame) |
| | Enqueue a raw APRS frame for APRS-IS.
|
| void | processQueue (bool disconnect=true) |
| | Process the APRS-IS frame queue.
|
|
| static quint32 | hashCallsign (QString callsign) |
| | Compute APRS-IS passcode for a callsign.
|
| static QString | loginFrame (QString callsign, QString filter=QString()) |
| | Build an APRS-IS login frame.
|
| static QPair< float, float > | grid2deg (QString grid) |
| | Convert grid locator to degrees.
|
| static QPair< QString, QString > | grid2aprs (QString grid) |
| | Convert grid locator to APRS format.
|
| static QString | stripSSID (QString call) |
| | Strip SSID from callsign.
|
| static QString | replaceCallsignSuffixWithSSID (QString call, QString base) |
| | Replace callsign suffix with SSID.
|
APRS-IS client responsible for sending and receiving APRS frames.
◆ APRSISClient()
| APRSISClient::APRSISClient |
( |
QString | host, |
|
|
quint16 | port, |
|
|
QObject * | parent = nullptr ) |
◆ enqueueMessageAck
| void APRSISClient::enqueueMessageAck |
( |
QString | from_call, |
|
|
QString | to_call, |
|
|
QString | messageId ) |
|
slot |
Enqueue a standard APRS message ACK frame.
Enqueue a standard APRS message ACK frame for APRS-IS.
- Parameters
-
| from_call | Source callsign for the ACK message. |
| to_call | Destination callsign being acknowledged. |
| messageId | APRS message identifier to acknowledge. |
| from_call | Source callsign (appears as the message sender). |
| to_call | Destination callsign to acknowledge. |
| messageId | APRS message identifier (preserved exactly). |
◆ enqueueRaw()
| void APRSISClient::enqueueRaw |
( |
QString | aprsFrame | ) |
|
Enqueue a raw APRS frame for APRS-IS.
- Parameters
-
◆ enqueueSpot
| void APRSISClient::enqueueSpot |
( |
QString | by_call, |
|
|
QString | from_call, |
|
|
QString | grid, |
|
|
QString | comment ) |
|
slot |
Enqueue a spot frame for APRS-IS.
- Parameters
-
| by_call | |
| from_call | |
| grid | |
| comment | |
◆ enqueueThirdParty
| void APRSISClient::enqueueThirdParty |
( |
QString | by_call, |
|
|
QString | from_call, |
|
|
QString | text ) |
|
slot |
Enqueue a third-party message frame for APRS-IS.
- Parameters
-
◆ grid2aprs()
| QPair< QString, QString > APRSISClient::grid2aprs |
( |
QString | grid | ) |
|
|
static |
Convert grid locator to APRS format.
- Parameters
-
- Returns
- QPair<QString, QString>
◆ grid2deg()
| QPair< float, float > APRSISClient::grid2deg |
( |
QString | locator | ) |
|
|
static |
Convert grid locator to degrees.
- Parameters
-
- Returns
- QPair<float, float>
◆ hashCallsign()
| quint32 APRSISClient::hashCallsign |
( |
QString | callsign | ) |
|
|
static |
Compute APRS-IS passcode for a callsign.
- Parameters
-
| callsign | Callsign to hash. |
- Returns
- APRS-IS passcode.
- Parameters
-
- Returns
- quint32
◆ loginFrame()
| QString APRSISClient::loginFrame |
( |
QString | callsign, |
|
|
QString | filter = QString() ) |
|
static |
Build an APRS-IS login frame.
Create a login frame for APRS-IS.
- Parameters
-
| callsign | Local station callsign. |
| filter | Optional APRS-IS filter string. |
- Returns
- Login frame string.
- Parameters
-
- Returns
- QString
◆ messageReceived
| void APRSISClient::messageReceived |
( |
QString | from, |
|
|
QString | to, |
|
|
QString | message, |
|
|
QString | messageId ) |
|
signal |
Emitted when a parsed APRS-IS message is received.
- Parameters
-
| from | APRS sender callsign. |
| to | APRS destination callsign. |
| message | APRS message payload without message ID suffix. |
| messageId | APRS message identifier (if present). |
◆ processQueue()
| void APRSISClient::processQueue |
( |
bool | disconnect = true | ) |
|
Process the APRS-IS frame queue.
- Parameters
-
◆ replaceCallsignSuffixWithSSID()
| QString APRSISClient::replaceCallsignSuffixWithSSID |
( |
QString | call, |
|
|
QString | base ) |
|
static |
Replace callsign suffix with SSID.
- Parameters
-
- Returns
- QString
◆ setIncomingRelayEnabled
| void APRSISClient::setIncomingRelayEnabled |
( |
bool | enabled | ) |
|
|
slot |
Enable or disable persistent inbound message relay.
Enable or disable persistent inbound relay connections.
- Parameters
-
| enabled | True to keep a connected session for inbound relay. |
When enabled, the client keeps an active connection so inbound APRS messages can be received and relayed. When disabled, connections are closed once the outbound queue drains.
- Parameters
-
◆ stripSSID()
| QString APRSISClient::stripSSID |
( |
QString | call | ) |
|
|
static |
Strip SSID from callsign.
- Parameters
-
- Returns
- QString
The documentation for this class was generated from the following files: