Преглед изворни кода

add float processing for edgex

RockyJin пре 5 година
родитељ
комит
170a148115
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      xstream/extensions/edgex_source.go

+ 2 - 1
xstream/extensions/edgex_source.go

@@ -1,3 +1,4 @@
+// +build edgex
 
 
 package extensions
 package extensions
 
 
@@ -203,7 +204,7 @@ func (es *EdgexSource) getValue(r models.Reading, logger api.Logger) (interface{
 	case "BINARY":
 	case "BINARY":
 		return nil, fmt.Errorf("Unsupport for binary type, the value will be ignored.")
 		return nil, fmt.Errorf("Unsupport for binary type, the value will be ignored.")
 	default:
 	default:
-		logger.Warnf("unknown type %s return the string value", t)
+		logger.Warnf("Not supported type %s, and processed as string value", t)
 		return v, nil
 		return v, nil
 	}
 	}
 }
 }