var ws = new WebSocket("ws://localhost/bvcsp/v1/ws/gpsdata",[token]);
var upgrader = websocket.Upgrader{ Subprotocols: []string{r.Header.Get("Sec-WebSocket-Protocol")}, }
{ "all": true, "badd": true, "puid": [ "string" ] }
curl --location --request GET 'https://192.168.88.32:9781/bvcsp/v1/ws/gpsdata?token=xxxxxx' \ --header 'Sec-WebSocket-Protocol: string' \ --header 'Content-Type: application/json' \ --data-raw '{ "all": true, "badd": true, "puid": [ "string" ] }'
定位星数, <= 0时非卫星定位。
{ "lng": 0, "lat": 0, "time": 0, "height": 0, "angle": 0, "speed": 0, "starCount": 0, "state": 0, "satellite": 1, "devId": "string" }