Last modified by Hera Guo on 2025/06/10 15:14

From version 22.1
edited by Hera Guo
on 2025/06/05 14:43
Change comment: There is no comment for this version
To version 23.1
edited by Hera Guo
on 2025/06/08 17:13
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -102,7 +102,7 @@
102 102   var data = {};
103 103   if (bytes.length >= 9) {
104 104   data.flag = bytes[0];
105 -data.Node_type = "Calculate AVG";
105 +data.Node_type = "Dragino_Mapper";
106 106   data.latitude = parseFloat(((bytes[1] << 24 >>> 0 | bytes[2] << 16 | bytes[3] << 8 | bytes[4]) / 1e6).toFixed(6));
107 107   data.longitude = parseFloat(((bytes[5] << 24 >>> 0 | bytes[6] << 16 | bytes[7] << 8 | bytes[8]) / 1e6).toFixed(6));
108 108  
... ... @@ -154,7 +154,7 @@
154 154   }
155 155   else if(bytes.length==9){
156 156   data.doorflg = doorflg
157 - data.Node_type = "Calculate AVG"
157 + data.Node_type = "Dragino_Mapper"
158 158   data.latitude=parseFloat(((bytes[1]<<24|bytes[2]<<16|bytes[3]<<8|bytes[4])/1000000).toFixed(6));
159 159   data.longitude=parseFloat(((bytes[5]<<24|bytes[6]<<16|bytes[7]<<8|bytes[8])/1000000).toFixed(6));
160 160   return data;