// PublishOnce core volt only once
PublishOnce core volt only once
// PublishOnce core volt only once
func (cv *coreVolt) PublishOnce(qos byte) {
	cpuCoreVolt := vcgencmd.Clean(service.CmdExec("vcgencmd", "measure_volts", "core"), "volt=", "V")
	if cpuCoreVolt != "" {
		if token := cv.client.Publish(cv.topic, qos, false, cpuCoreVolt); token.Wait() && token.Error() != nil {
			log.Println(token.Error())
		}
		if cv.debug {
			log.Println("[PUB]", qos, cv.topic, cpuCoreVolt)
		}
	}
}
func ( cv * coreVolt ) PublishOnce ( qos byte ) { cpuCoreVolt := vcgencmd . Clean ( service . CmdExec ( " " , " " , " " ) , " " , " " ) if cpuCoreVolt != " " { if token := cv . client . Publish ( cv . topic , qos , false , cpuCoreVolt ) ; token . Wait ( ) && token . Error ( ) != nil { log . Println ( token . Error ( ) ) } if cv . debug { log . Println ( " " , qos , cv . topic , cpuCoreVolt ) } } }
PublishOnce core volt only once
PublishOnce core volt only once
// debug