IotHub
  1. command
IotHub
  • README
  • Update Record
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
        POST
      • commandInfoList
        POST
      • cutOilElectric
        POST
      • getConfig
        POST
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
      POST
    • fenceInfo
      POST
    • addFence
      POST
    • saveFence
      POST
    • delFence
      POST
    • fenceDevices
      POST
    • fenceDeviceUpdate
      POST
    • fenceDeviceDel
      POST
    • fenceDeviceAdd
      POST
  • push
    • README
  • video
    • H5 page
    • H5 Page-V2
    • liveVideo
    • playBackList
    • historicalUpload
    • playBack
    • replaySet
    • taskPage
    • taskDelete
    • getNodes
  • alarm
    • alarmTypeList
    • alarmFilePage
    • alarmFileByAlarmId
    • alarmHistoryPage
    • alarmPageByUser
  • audio
    • README
    • talk
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
  • fleet
    • faceRecordPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. command

getConfig

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/device/command/getConfig
Get device configuration parameters (basic parameters/network/audio and video/ADAS/DMS)

Request

Header Params
Authorization
string 
required
Example:
{{token}}
Body Params application/json
deviceId
string  | null 
required
Device ID
Example
{
    "deviceId": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/command/getConfig' \
--header 'Authorization: ' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "deviceId": "string"
}'

Responses

🟢200OK
application/json
Body
code
integer  | null 
optional
data
object (ApiDeviceGetConfigVO) 
optional
basicDetail
object (BasicDetailVO) 
optional
BasicDetail
network
object (NetworkVO) 
optional
Network
video
object (VideoVO) 
optional
videoConfig
advancedDriverAssistanceSystem
object (AdvancedDriverAssistanceSystemVO) 
optional
Advanced Driver Assistance System
driverStatusMonitoringSystem
object (DriverStatusMonitoringSystemVO) 
optional
Driver Status Monitoring System
blindSpotMonitoringSystem
object (BlindSpotMonitoringSystemVO) 
optional
Blind Spot Monitoring System
msg
string  | null 
optional
Example
{
    "code": 0,
    "data": {
        "basicDetail": {
            "heartbeatInterval": "",
            "sleepInterval": "",
            "emergencyInterval": "",
            "defaultTimeInterval": "",
            "maxSpeed": "",
            "overspeedDuration": "",
            "continuousDrivingTimeThreshold": "",
            "todayDrivingTimeThreshold": "",
            "minimumRestTime": "",
            "maximumParkingTime": "",
            "collisionTime": "",
            "collisionAcceleration": "",
            "rolloverAlarmSettings": "",
            "graphicVideoQuality": "",
            "brightness": "",
            "contrast": "",
            "saturation": "",
            "chroma": "",
            "vehicleOdometerReading": "",
            "gnssLocationMode": "",
            "gnssBaudRate": "",
            "gnssOutputFrequency": "",
            "gnssGatherFrequency": "",
            "alarmShootingSwitch": "",
            "alarmStorageIdentification": "",
            "keyFlag": ""
        },
        "network": {
            "mainServerAPN": "",
            "mainServerUsername": "",
            "mainServerPassword": "",
            "mainServerAddress": "",
            "backupServerAddress": "",
            "serverTCPPort": ""
        },
        "video": {
            "channel1Switch": false,
            "channel2Switch": false,
            "channel3Switch": false,
            "channel4Switch": false,
            "channel5switch": false,
            "channel1StorageFlag": false,
            "channel2StorageFlag": false,
            "channel3StorageFlag": false,
            "channel4StorageFlag": false,
            "channel5StorageFlag": false,
            "timingUnit": 0,
            "timingInterval": 0,
            "liveStreamMode": 0,
            "streamResolution": 0,
            "streamInterval": 0,
            "streamFrameRate": 0,
            "streamBitRate": 0,
            "storageStreamMode": 0,
            "storageResolution": 0,
            "storageInterval": 0,
            "storageFrameRate": 0,
            "storageBitRate": 0,
            "osdSubtitleSetting": 0,
            "enableAudioOutput": 0,
            "audioVideoTotal": 0,
            "audioTotal": 0,
            "videoTotal": 0
        },
        "advancedDriverAssistanceSystem": {
            "alarmSpeed": 0,
            "alarmVolume": 0,
            "activePhotoStrategy": 0,
            "timingPhotoInterval": 0,
            "distancePhotoInterval": 0,
            "activePhotoNumber": 0,
            "activePhotoInterval": 0,
            "photoResolution": 0,
            "videoResolution": 0,
            "alarmEnable": 0,
            "eventEnable": 0,
            "reserved": 0,
            "obsDistance": 0,
            "obsSpeed": 0,
            "obsVideoTime": 0,
            "obsPhotoNumber": 0,
            "obsPhotoInterval": 0,
            "fclTimeFrame": 0,
            "fclJudgmentNumber": 0,
            "fclSpeed": 0,
            "fclVideoTime": 0,
            "fclPhotoNumber": 0,
            "fclPhotoInterval": 0,
            "ldwSpeed": 0,
            "ldwVideoTime": 0,
            "ldwPhotoNumber": 0,
            "ldwPhotoInterval": 0,
            "fcwTime": 0,
            "fcwSpeed": 0,
            "fcwAlarmVideoTime": 0,
            "fcwAlarmPhotoNumber": 0,
            "fcwPhotoInterval": 0,
            "pcwTime": 0,
            "pcwSpeed": 0,
            "pcwVideoTime": 0,
            "pcwPhotoNumber": 0,
            "pcwPhotoInterval": 0,
            "dvwDistance": 0,
            "dvwSpeed": 0,
            "dvwVideoTime": 0,
            "dvwPhotoNumber": 0,
            "dvwPhotoInterval": 0,
            "tsrPhotoNumber": 0,
            "tsrPhotoInterval": 0,
            "reserved1": 0
        },
        "driverStatusMonitoringSystem": {
            "alarmSpeed": 0,
            "alarmVolume": 0,
            "activePhotoStrategy": 0,
            "activeTimingPhotoInterval": 0,
            "activeDistancePhotoInterval": 0,
            "singleActivePhotoNumber": 0,
            "singleActivePhotoInterval": 0,
            "photoResolution": 0,
            "videoRecordingResolution": 0,
            "alarmEnable": 0,
            "eventEnable": 0,
            "smokingAlarmInterval": 0,
            "callAlarmInterval": 0,
            "reserved": "",
            "bawsSpeed": 0,
            "bawsVideoTime": 0,
            "bawsPhotoNumber": 0,
            "bawsPhotoInterval": 0,
            "callSpeed": 0,
            "callVideoTime": 0,
            "callPhotoNumber": 0,
            "callPhotoInterval": 0,
            "smokingSpeed": 0,
            "smokingVideoTime": 0,
            "smokingPhotoNumber": 0,
            "smokingPhotoInterval": 0,
            "ddpSpeed": 0,
            "ddpVideoTime": 0,
            "ddpPhotoNumber": 0,
            "ddpPhotoInterval": 0,
            "dabSpeed": 0,
            "dabVideoTime": 0,
            "dabPhotoNumber": 0,
            "adabPhotoInterval": 0,
            "driverIdentificationTrigger": 0,
            "reservedField": 0
        },
        "blindSpotMonitoringSystem": {
            "rearIsApproachingTheAlarmTime": "",
            "sideIsApproachingTheAlarmTime": ""
        }
    },
    "msg": ""
}
Modified at 2025-06-24 07:17:40
Previous
cutOilElectric
Next
devicePage
Built with