wzh il y a 5 ans
Parent
commit
850c9f98aa
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      websocket/idcolWss.php

+ 1 - 1
websocket/idcolWss.php

@@ -108,7 +108,7 @@ $ws_worker->onWorkerStart = function($ws_worker)
                                 $file_path .= '0';
                             }
                             $cmd .= $file_path;
-                            $cmd = crc16(unpack('H*', $cmd));
+                            $cmd = crc16(pack('H*', $cmd));
                             $mqtt->publish($topick.$address, unpack('H*', $cmd));
 
                             $index = strtolower($address);