type value | Description |
---|---|
PU | Ordinary device, no user information, such as: MPU law enforcement instrument. |
CU | Client user, no device information, such as: user login web client. |
UA | Device end user, has user and device information, such as: MCP law enforcement instrument. |
curl --location --request GET 'https://192.168.88.11:9781/bvcsp/v1/ws/event/onlinestatus' \
--header 'Sec-WebSocket-Protocol: string'
{
"type": "PU",
"time": 0,
"status": 0,
"network": {
"deviceAddr": "string",
"serverAddr": "string",
"TCP1OrUDP2": 1,
"protocol": "string"
},
"user": {
"id": "string",
"enable": true,
"gid": "string",
"name": "string",
"idcard": "string",
"creator": "string",
"validity_time": 0,
"position": "string",
"phone": "string",
"email": "string",
"desc": "string",
"roles": [
"string"
],
"password_time": 0
},
"device": {
"id": "string",
"gid": "string",
"name": "string",
"manufacturer": "string",
"product": "string",
"softwareVersion": "string",
"hardwareVersion": "string",
"classID": 0,
"channels": [
{
"index": 0,
"mediaDir": 1,
"ptz": 0,
"name": "string"
}
],
"gps": {
"lng": 0,
"lat": 0,
"time": 0
},
"hardware": {
"WIFI": 0,
"radio": 0,
"videoIn": 0,
"audioIn": 0,
"audioOut": 0,
"PTZ": 0,
"serialPort": 0,
"alertIn": 0,
"alertOut": 0,
"storage": 0,
"GPS": 0
},
"lastTime": 0
}
}