#ifndef APRS_IS_UTILS_H_
#define APRS_IS_UTILS_H_

#include <Arduino.h>


namespace APRS_IS_Utils {

    void    upload(const String& line);
    void    connect();
    void    checkStatus();
    String  checkForStartingBytes(const String& packet);
    
    String  buildPacketToUpload(const String& packet);
    bool    processReceivedLoRaMessage(const String& sender, const String& packet, bool thirdParty);
    void    processLoRaPacket(const String& packet);

    String  buildPacketToTx(const String& aprsisPacket, uint8_t packetType);
    void    processAPRSISPacket(const String& packet);
    void    listenAPRSIS();

}

#endif