RadioLib
Universal wireless communication library for Arduino
AX25Client Class Reference

Client for AX25 communication. More...

#include <AX25.h>

Public Member Functions

 AX25Client (PhysicalLayer *phy)
 Constructor for 2-FSK mode. More...
 
 AX25Client (AFSKClient *audio)
 Constructor for AFSK mode. More...
 
int16_t begin (const char *srcCallsign, uint8_t srcSSID=0x00, uint8_t preambleLen=8)
 Initialization method. More...
 
int16_t transmit (const char *str, const char *destCallsign, uint8_t destSSID=0x00)
 Transmit unnumbered information (UI) frame. More...
 
int16_t sendFrame (AX25Frame *frame)
 Transmit arbitrary AX.25 frame. More...
 

Detailed Description

Client for AX25 communication.

Constructor & Destructor Documentation

◆ AX25Client() [1/2]

AX25Client::AX25Client ( PhysicalLayer phy)
explicit

Constructor for 2-FSK mode.

Parameters
phyPointer to the wireless module providing PhysicalLayer communication.

◆ AX25Client() [2/2]

AX25Client::AX25Client ( AFSKClient audio)
explicit

Constructor for AFSK mode.

Parameters
audioPointer to the AFSK instance providing audio.

Member Function Documentation

◆ begin()

int16_t AX25Client::begin ( const char *  srcCallsign,
uint8_t  srcSSID = 0x00,
uint8_t  preambleLen = 8 
)

Initialization method.

Parameters
srcCallsignCallsign of the source station.
srcSSID4-bit SSID of the source station (in case there are more stations with the same callsign). Defaults to 0.
preambleLenNumber of "preamble" bytes (AX25_FLAG) sent ahead of the actual AX.25 frame. Does not include the first AX25_FLAG byte, which is considered part of the frame. Defaults to 8.
Returns
Status Codes

◆ sendFrame()

int16_t AX25Client::sendFrame ( AX25Frame frame)

Transmit arbitrary AX.25 frame.

Parameters
frameFrame to be sent.
Returns
Status Codes

◆ transmit()

int16_t AX25Client::transmit ( const char *  str,
const char *  destCallsign,
uint8_t  destSSID = 0x00 
)

Transmit unnumbered information (UI) frame.

Parameters
strData to be sent.
destCallsignCallsign of the destination station.
destSSID4-bit SSID of the destination station (in case there are more stations with the same callsign). Defaults to 0.
Returns
Status Codes

The documentation for this class was generated from the following files: