commands

package
v0.0.0-...-484ce00 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Domain = struct {
	None         DomainType
	VCSEC        DomainType
	Infotainment DomainType
}{
	None:         "",
	VCSEC:        "vcsec",
	Infotainment: "infotainment",
}
View Source
var ExceptedCommands = []string{"vehicle_data", "auto_conditioning_start", "auto_conditioning_stop", "charge_port_door_open", "charge_port_door_close", "flash_lights", "wake_up", "set_charging_amps", "set_charge_limit", "charge_start", "charge_stop", "session_info"}
View Source
var ExceptedEndpoints = []string{"charge_state", "climate_state"}

Functions

func GetCategory

func GetCategory(nameStr string) (vehicle.StateCategory, error)

Types

type Command

type Command struct {
	Command  string
	Domain   DomainType
	Vin      string
	Body     map[string]interface{}
	Response *models.ApiResponse
}

func (*Command) Send

func (command *Command) Send(ctx context.Context, car *vehicle.Vehicle) (shouldRetry bool, err error)

type DomainType

type DomainType string

Jump to

Keyboard shortcuts

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