js8call

package module
v0.0.0-...-42edf3d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 6 Imported by: 1

README

js8call-go

Golang binding for API of JS8CALL amateur radio software

Credit to https://github.com/k0swe/wsjtx-go where I'm getting a lot of inspiration, help and ideas from.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Params json.RawMessage `json:"params"`
	Type   string          `json:"type"`
	Value  string          `json:"value"`
}

Message is a generic type to allow us to get the value of Type

type RXActivity

type RXActivity struct {
	Type   string `json:"type"`
	Value  string `json:"value"`
	Params struct {
		DIAL   int     `json:"DIAL"`
		FREQ   int     `json:"FREQ"`
		OFFSET int     `json:"OFFSET"`
		SNR    int     `json:"SNR"`
		SPEED  int     `json:"SPEED"`
		TDRIFT float64 `json:"TDRIFT"`
		UTC    int64   `json:"UTC"`
		ID     int     `json:"_ID"`
	}
}

RXActivity contains the specific RX.ACTIVITY message structure

type RXDirected

type RXDirected struct {
	Type   string `json:"type"`
	Value  string `json:"value"`
	Params struct {
		CMD    string  `json:"CMD"`
		DIAL   int     `json:"DIAL"`
		EXTRA  string  `json:"EXTRA"`
		FREQ   int     `json:"FREQ"`
		FROM   string  `json:"FROM"`
		GRID   string  `json:"GRID"`
		OFFSET int     `json:"OFFSET"`
		SNR    int     `json:"SNR"`
		SPEED  int     `json:"SPEED"`
		TDRIFT float64 `json:"TDRIFT"`
		TEXT   string  `json:"TEXT"`
		TO     string  `json:"TO"`
		UTC    int64   `json:"UTC"`
		ID     int     `json:"_ID"`
	}
}

RX.BAND_ACTIVITY RX.CALL_ACTIVITY RX.CALL_SELECTED

RXDirected contains the specific RX.DIRECTED message structure

type RXSpot

type RXSpot struct {
	Type   string `json:"type"`
	Value  string `json:"value"`
	Params struct {
		CALL   string `json:"CALL"`
		DIAL   int    `json:"DIAL"`
		FREQ   int    `json:"FREQ"`
		GRID   string `json:"GRID"`
		OFFSET int    `json:"OFFSET"`
		SNR    int    `json:"SNR"`
		ID     int    `json:"_ID"`
	}
}

RXSpot contains the specific RX.SPOT message structure

type RigFreq

type RigFreq struct {
	Type   string `json:"type"`
	Value  string `json:"value"`
	Params struct {
		BAND   string `json:"BAND"`
		DIAL   int64  `json:"DIAL"`
		FREQ   int64  `json:"FREQ"`
		OFFSET int    `json:"OFFSET"`
		ID     int    `json:"_ID"`
	}
}

RigFreq contains the specific RIG.FREQ message structure

type RigPTT

type RigPTT struct {
	Type   string `json:"type"`
	Value  string `json:"value"`
	Params struct {
		PTT bool  `json:"PTT"`
		UTC int64 `json:"UTC"`
		ID  int   `json:"_ID"`
	}
}

RigPTT contains the specific RIG.PTT message structure

type TCPClient

type TCPClient struct {
	Address        string
	Port           string
	MessageChannel chan interface{}
	ErrorChannel   chan error
	Debug          bool
	// contains filtered or unexported fields
}

func MakeTCPClient

func MakeTCPClient(address string, port string) *TCPClient

MakeTCPClient creates a TCPClient with default channels

func (*TCPClient) Start

func (client *TCPClient) Start()

type TXFrame

type TXFrame struct {
	Type   string `json:"type"`
	Value  string `json:"value"`
	Params struct {
		TONES []int `json:"TONES"`
	}
}

TXFrame contains the specific TX.FRAME message structure

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL