Add modbus integration

This commit is contained in:
hmelder 2024-11-10 01:47:01 +01:00 committed by Rahix
parent 4edabc5c56
commit 2e6a3be100
5 changed files with 119 additions and 0 deletions

View file

@ -8,11 +8,13 @@ import (
"sync/atomic"
"time"
"github.com/simonvetter/modbus"
"k8s.io/klog"
)
// daemon is the main service of the succdaemon.
type daemon struct {
modbusClient *modbus.ModbusClient
// adcPirani is the adc implementation returning the voltage of the Pfeiffer
// Pirani gauge.
adcPirani adc