-
Notifications
You must be signed in to change notification settings - Fork 1
/
send_and_receive_single_packet.robot
46 lines (34 loc) · 1.26 KB
/
send_and_receive_single_packet.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Send a single message to WXBOT, wait for a response message and display it on the console.
#
# Author: Joerg Schultze-Lutter, DF1JSL
# https://www.github.com/joergschultzelutter
*** Settings ***
Library AprsLibrary
Suite Setup Open APRS-IS Connection
Suite Teardown Close APRS-IS Connection
*** Variables ***
# This is your APRS-IS call sign. Replace this value with your personal call sign
${callsign} YOURCALLSIGN
# This is the message that we will send out to WXBOT
${message} ${callsign}>APRS::WXBOT${SPACE}${SPACE}${SPACE}${SPACE}:tomorrow
# APRS-IS server filter, see http://www.aprs-is.net/javAPRSFilter.aspx
${filter} g/WXBOT/${callsign}*
*** Test Cases ***
Send packet to APRS-IS with callsign ${callsign}
Log Send Packet to APRS-IS
Send APRS Packet ${message}
Receive packet from APRS-IS with callsign ${callsign}
Log Receive Packet from APRS-IS
${packet} = Receive APRS Packet
Log To Console ${packet}
*** Keywords ***
Open APRS-IS Connection
${passcode}= Calculate APRS-IS Passcode ${callsign}
Set APRS-IS Callsign ${callsign}
Set APRS-IS Passcode ${passcode}
Set APRS-IS Filter ${filter}
Log Connecting to APRS-IS
Connect to APRS-IS
Close APRS-IS Connection
Log Disconnect from APRS-IS
Disconnect from APRS-IS