コード例 #1
0
ファイル: utils.php プロジェクト: dbursem/phpaprs
function txtmsg(phpaprs\APRS $aprs, $msg, $dest, $from = FALSE, $path = FALSE)
{
    $msg = new phpaprs\packets\APRS_Message($msg, $dest);
    if ($from == FALSE) {
        $msg->setCallsign(MYCALL);
    } else {
        $msg->setCallsign($from);
    }
    if ($path != FALSE) {
        $msg->setPath($path);
    }
    $aprs->sendPacket($msg);
}