MS-PDRLKVHCADMG\Administrator il y a 5 ans
Parent
commit
8f669dfb03
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      api/application/controllers/Lampcontrol.php

+ 1 - 0
api/application/controllers/Lampcontrol.php

@@ -1122,6 +1122,7 @@ class Lampcontrol extends Base_Controller {
         }else{
             // if (strtolower(crc16(pack('H*',substr($res['msg'], 0,-4)))) == strtolower(substr($res['msg'],-4))) {
             $res['msg'] = unpack('H*', $res['msg'])[1];
+            set_log('get_load.txt',$res['msg']);
                 $data = array();
                 $data['intell_power'] = base_convert(substr($res['msg'], 18,1), 16, 10).''; // 智能功率
                 $data['light_type'] = base_convert(substr($res['msg'], 19,1), 16, 10).''; // 灯控模式