/api/aes67/ptp-state
Use the interface to obtain PTP running state.
Request Mode
POST /api/aes67/ptp-state
Response Body
{
"status": 0,
"is-sync": true,
"is-master": false,
"lock-to": "D0-C8-57-FF-FE-80-DF-9D",
"statistics": {
"datetime": "2022-10-14 14:26:03",
"interval": 2000,
"delay": [
-81,
286,
-182,
-70,
-84,
-143,
-393,
-35,
516,
6,
-772,
-382,
-269,
-83,
-23
]
}
}
Name | Description |
---|---|
status | 0 indicates that the request was accepted successfully. Refer to API Status Codes. |
is-sync | indicates this device has synchronized with its master. |
is-master | true: master, false: slaver |
lock-to | GMID of current master clock. |
statistics.datetime | current time of your device. |
statistics.interval | Statistics interval, in ms. |
statistics.delay | Statistics delay, in ns. |