From ebe9ac6fd240af1f9c54ebab6b8906b8e6dee7d3 Mon Sep 17 00:00:00 2001 From: geek Date: Tue, 3 Jul 2018 13:42:14 +0900 Subject: [PATCH] ing --- service/SensorService.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/service/SensorService.go b/service/SensorService.go index 162a875..cd6adf0 100644 --- a/service/SensorService.go +++ b/service/SensorService.go @@ -54,24 +54,12 @@ func (s *SensorService) StopSensor(id int64) error { func (s *SensorService) AddSensor(sensorConfigBase64 string) error { // base64 decode - - //ddd := []byte(sensorConfigBase64) - //ff := make([]byte,len(ddd)) - - //fmt.Println(ddd) - bufByte, err := base64.StdEncoding.DecodeString(sensorConfigBase64) - //bufByte := base64.NewDecoder(base64.StdEncoding, bytes.NewBufferString(sensorConfigBase64)) - //bufByte, err := b64.RawStdEncoding.DecodeString(sensorConfigBase64) - - //n, err := b64.StdEncoding.Decode(ff, ddd) - //fmt.Println(n) if nil == bufByte || nil != err { return err } - //b, _ := ioutil.ReadAll(bufByte) s.SensorConfigService.AddConfig(string(bufByte)) return nil