ReferenceHTTP API
deviceMesh
The deviceMesh router: 4 methods of the device-mesh capability, with tier, scope, input and output.
Capability device-mesh · scope device · mode singleton · source packages/types/src/capabilities/device-mesh.cap.ts:208.
Every method is called at /trpc/deviceMesh.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getTopology | query | admin | admin only | no |
getNodeDiagnostics | query | admin | admin only | no |
readNow | mutation | admin | admin only | no |
refresh | mutation | admin | admin only | no |
deviceMesh.getTopology
- Kind: query —
GET /trpc/deviceMesh.getTopology - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=deviceMesh.getTopologyon your hub
Input
{ deviceId: number }Output
MeshTopologySchemaShapes: MeshTopologySchema
deviceMesh.getNodeDiagnostics
- Kind: query —
GET /trpc/deviceMesh.getNodeDiagnostics - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=deviceMesh.getNodeDiagnosticson your hub
Input
{ deviceId: number }Output
MeshNodeDiagnosticsSchemaShapes: MeshNodeDiagnosticsSchema
deviceMesh.readNow
- Kind: mutation —
POST /trpc/deviceMesh.readNow - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=deviceMesh.readNowon your hub
Input
{ deviceId: number }Output
{ readOk: boolean; error: string | null; diagnostics: MeshNodeDiagnosticsSchema }Shapes: MeshNodeDiagnosticsSchema
deviceMesh.refresh
- Kind: mutation —
POST /trpc/deviceMesh.refresh - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=deviceMesh.refreshon your hub
Input
{ deviceId: number }Output
{ readNodes: number; failedNodes: number; skippedNodes: number }