Table of Contents

Drivers: status

To check status of unit with binded driver, use command resource/driver_status:

svc=resource/driver_status&params={"phoneNumber":<text>,
				   "password":<text>,
				   "app":<text>,
				   "fl":<uint>}

Params

Name Description
phoneNumber driver phone number
password mobile key
app app name for the generated token
fl optional flags (1 - return token, 2 - return status even if driver is not binded )

Response

{
"drv":{		/* driver params */
    "rid":<uint>,   /* resource id */
    "id":<text>,    /* driver id */
    "nm":<text>}    /* driver name */
},    
"un":{		/* unit params */
    "nm":<text>, 
    "cls":<uint>,     
    "id":<uint>,    
    "mu":<uint>,
    "ct":<uint>,    
    "ftp":{ ... },
    "pos":{ ... },
    "lmsg":{ ... },
    "uri":<text>,
    "ugi":<uint>,
    "uacl":<int>
},
"uh":<text>,    /* encrypted device information (for WiaTag) */
"ul":<text>,    /* encrypted phone number */
"h":<text>      /* token */
}

:!: Parameters description and entry of "pos", "lmsg" you can find here: Units

Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2021 Gurtam