// SetTargetSoC sets loadpoint charge target soc
SetTargetSoC sets loadpoint charge target soc
// SetTargetSoC sets loadpoint charge target soc
func (lp *LoadPoint) SetTargetSoC(soc int) {
	lp.Lock()
	defer lp.Unlock()
	lp.log.DEBUG.Println("set target soc:", soc)
	if lp.SoC.Target != soc {
		lp.setTargetSoC(soc)
		lp.requestUpdate()
	}
}
func ( lp * LoadPoint ) SetTargetSoC ( soc int ) { lp . Lock ( ) defer lp . Unlock ( ) lp . log . DEBUG . Println ( " " , soc ) if lp . SoC . Target != soc { lp . setTargetSoC ( soc ) lp . requestUpdate ( ) } }
SetTargetSoC sets loadpoint charge target soc
SetTargetSoC sets loadpoint charge target soc
// apply immediately