소스 검색

设备获取智能场景数据2秒一次MQTT

locky 3 년 전
부모
커밋
192fdbe551
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Controller/SensorGateway/SmartSceneController.py

+ 2 - 2
Controller/SensorGateway/SmartSceneController.py

@@ -867,7 +867,7 @@ class SmartSceneView(View):
                     assert success
                 except AssertionError:
                     return response.json(10044)
-                time.sleep(1)
+                time.sleep(2)
 
             # 下发智能按钮数据
             smart_button_qs = GatewaySubDevice.objects.filter(device_id=device_id,
@@ -887,7 +887,7 @@ class SmartSceneView(View):
                         assert success
                     except AssertionError:
                         return response.json(10044)
-                    time.sleep(1)
+                    time.sleep(2)
 
             return response.json(0)
         except Exception as e: