Explorar el Código

add check config

lijian hace 2 años
padre
commit
720e0db7a4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/apiprovider/router.go

+ 1 - 1
services/apiprovider/router.go

@@ -54,7 +54,7 @@ func route(m *martini.ClassicMartini) {
 
 		// send a command to device
 		r.Post("/devices/:identifier/commands",
-			ApplicationAuthOnDeviceIdentifer, CheckDeviceOnline,
+			ApplicationAuthOnDeviceIdentifer, CheckDeviceOnline, CheckProductConfig,
 			SendCommandToDevice)
 
 		// and a rule to device