func CurrentChargeModeHandler(loadpoint core.LoadPointAPI) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		res := chargeModeJSON{Mode: loadpoint.GetMode()}
		jsonResponse(w, r, res)
	}
}
// CurrentChargeModeHandler returns current charge mode
CurrentChargeModeHandler returns current charge mode
// CurrentChargeModeHandler returns current charge mode
func CurrentChargeModeHandler(loadpoint core.LoadPointAPI) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		res := chargeModeJSON{Mode: loadpoint.GetMode()}
		jsonResponse(w, r, res)
	}
}
func CurrentChargeModeHandler ( loadpoint core . LoadPointAPI ) http . HandlerFunc { return func ( w http . ResponseWriter , r * http . Request ) { res := chargeModeJSON { Mode : loadpoint . GetMode ( ) } jsonResponse ( w , r , res ) } }
CurrentChargeModeHandler returns current charge mode
CurrentChargeModeHandler returns current charge mode