Add GPIO plugin (#25806)
This commit is contained in:
parent
60c8993c0c
commit
1c11cc46a1
5 changed files with 92 additions and 12 deletions
18
plugin/gpio.go
Normal file
18
plugin/gpio.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
//go:build !linux
|
||||
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/evcc-io/evcc/api"
|
||||
)
|
||||
|
||||
func init() {
|
||||
registry.AddCtx("gpio", NewGpioPluginFromConfig)
|
||||
}
|
||||
|
||||
// NewGpioPluginFromConfig creates a GPIO provider
|
||||
func NewGpioPluginFromConfig(ctx context.Context, other map[string]any) (Plugin, error) {
|
||||
return nil, api.ErrUnsupportedPlatform
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue