nmea2000

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package nmea2000 provides NMEA 2000 simulation capabilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Transport    network.NMEA2000Server
	WebSocket    network.NMEA2000Server
	UpdatePeriod time.Duration
}

Config holds simulator configuration

type Simulator

type Simulator struct {
	// contains filtered or unexported fields
}

Simulator represents a NMEA 2000 network simulator

func New

func New(cfg Config) *Simulator

New creates a new NMEA 2000 simulator

func (*Simulator) Start

func (s *Simulator) Start(ctx context.Context) error

Start begins the simulation

func (*Simulator) Stop

func (s *Simulator) Stop() error

Stop terminates the simulation

Directories

Path Synopsis
Package pgn provides NMEA 2000 PGN (Parameter Group Number) definitions and encoding
Package pgn provides NMEA 2000 PGN (Parameter Group Number) definitions and encoding

Jump to

Keyboard shortcuts

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