Commit adf42db4 by lixinming

ws

parent 8f7b0a9a
import * as WebSocket from "ws"
//连接锁
let lockReconnect = false;
......@@ -88,6 +89,32 @@ async function createSocket() {
//todo
export async function initWSData() {
// await createSocket();
await createSocket();
console.log();
}
\ No newline at end of file
}
let vehicleQueue = {};
function stats(data) {
}
/*
{
"accLat":0.08,
"accLong":1.542,
"acceleration":0,加速度
"altitude":-3276,海拔高度
"canRecvTime":1660285379691,//接收数据时间
"direction":0,//方向
"drivemode":0,//驾驶模式
"latitude":纬度,
"longitude":经度,
"mileage":里程,
"positiontime":时间戳,
"vehicleid":"车辆id",
"velocity":速度,
"vin":"LSJE24090MS029920"
}
*/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment