apex.rb 451 Bytes
Newer Older
1
2
require 'kiss/kiss_serial'
require 'aprs/aprs_kiss'
3
4

module Apex
5
6
    VERSION = "0.0.1"
    
7
    def self.main
8
        kiss = Kiss::KissSerial.new('/dev/ttyUSB1', 9600)
9
10
        aprs_kiss = Aprs::AprsKiss.new(kiss)
        aprs_kiss.connect(Kiss::MODE_INIT_KENWOOD_D710)
11

12
13
14
15
16
17
18
19
20
        while true
            frame = aprs_kiss.read
            if frame
                p frame
            else
                sleep(1)
            end
        end
    end
21
end