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