8000 [1-wire] onewire.connector should be exposed · Issue #1134 · hybridgroup/gobot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[1-wire] onewire.connector should be exposed #1134
Open
@gen2thomas

Description

@gen2thomas

This would simplify the usage in custom applications. Currently the application have to copy the interface, e.g. like so:

// onewireConnector lets adaptors provide the drivers to get access to the 1-wire devices on platforms.
// TODO: can be removed if gobot is fixed
type onewireConnector interface {
	// GetOneWireConnection returns a connection to a 1-wire device with family code and serial number.
	GetOneWireConnection(familyCode byte, serialNumber uint64) (onewire.Connection, error)
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0