Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { *internal.BaseModule // contains filtered or unexported fields }
Connection provides support for managing the connection to the robot.
func New ¶
func New(ub unitybridge.UnityBridge, l *logger.Logger, appID uint64, typ Type) (*Connection, error)
New creates a new Connection instance with the given UnityBridge instance and logger.
func (*Connection) SignalQualityBars ¶
func (c *Connection) SignalQualityBars() uint8
SignalQualityBars returns the current signal quality as a number of bars (1 to 4).
func (*Connection) SignalQualityLevel ¶
func (c *Connection) SignalQualityLevel() uint8
SignalQualityLevel returns the current signal quality level. 0 means no signal whatsoever and 60 appears to be the strongest value.
func (*Connection) Start ¶
func (c *Connection) Start() error
Start starts the connection module. It will try to find a robot broadcasting in the network and connect to it.
Click to show internal directories.
Click to hide internal directories.