ble

package
v0.0.0-...-bd1586f Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WifiAccessPointSSID       uuid = "GP-0002"
	WifiAccessPointPassword   uuid = "GP-0003"
	WifiAccessPointPower      uuid = "GP-0004"
	WifiAccessPointState      uuid = "GP-0005"
	NetworkManagementCommand  uuid = "GP-0091"
	NetworkManagementResponse uuid = "GP-0092"
	Command                   uuid = "GP-0072"
	CommandResponse           uuid = "GP-0073"
	Setting                   uuid = "GP-0074"
	SettingResponse           uuid = "GP-0075"
	Query                     uuid = "GP-0076"
	QueryResponse             uuid = "GP-0077"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GoPro

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

func ScanGoPro

func ScanGoPro(adaptorID string, tmo time.Duration) ([]*GoPro, error)

func (*GoPro) Analytics

func (g *GoPro) Analytics() error

Analytics sets third party client

func (*GoPro) ApControl

func (g *GoPro) ApControl(on bool) error

ApContol turn on or off AP mode

func (*GoPro) Close

func (g *GoPro) Close() error

func (*GoPro) Connect

func (g *GoPro) Connect() error

func (*GoPro) GetHardwareInfo

func (g *GoPro) GetHardwareInfo() (*HardwareInfo, error)

GetHardwareInfo gets the hardware info of the camera.

func (*GoPro) GetTime

func (g *GoPro) GetTime() (time.Time, error)

GetTime gets the date and time on the camera.

func (*GoPro) GetVersion

func (g *GoPro) GetVersion() (string, error)

GetVersion returns the version of the camera. in form of major.minor

func (*GoPro) KeepAlive

func (g *GoPro) KeepAlive() error

KeepAlive sends a keep alive message to the GoPro. The best practice to prevent the GoPro from sleeping is to send a keep alive message every 3 seconds.

func (*GoPro) MediaHiLightMoment

func (g *GoPro) MediaHiLightMoment() error

MediaHiLightMoment highlights moment during encoding

func (*GoPro) PresetLoad

func (g *GoPro) PresetLoad(id uint32) error

PresetLoad loads a preset with ID.

func (*GoPro) PresetLoadGroup

func (g *GoPro) PresetLoadGroup(p Preset) error

PresetLoadGroup loads a preset group.

func (*GoPro) SetLivestreamMode

func (g *GoPro) SetLivestreamMode(mode *open_gopro.RequestSetLiveStreamMode) error

SetLivestreamMode sets the live stream mode.

func (*GoPro) SetShutter

func (g *GoPro) SetShutter(on bool) error

SetShutter sets the shutter on or off.

func (*GoPro) SetTime

func (g *GoPro) SetTime(t time.Time) error

SetTime sets the date and time on the camera.

func (*GoPro) Sleep

func (g *GoPro) Sleep() error

Sleep puts the camera into sleep mode.

func (*GoPro) String

func (g *GoPro) String() string

type HardwareInfo

type HardwareInfo struct {
	ModelID         string
	Name            string
	BoardType       string
	FirmwareVersion string
	SerialNumber    string
	ApSSID          string
	ApMAC           string
}

type Preset

type Preset byte
const (
	PresetVideo Preset = iota
	PresetPhoto
	PresetTimelapse
)

Jump to

Keyboard shortcuts

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