Zum Inhalt
HALOWERK

Iotwerk

mesh route

Computes a deterministic shortest path over caller-supplied directed or bidirectional links with non-negative costs. It does not measure live radio conditions, reserve capacity or push routes to devices.

POST https://iot.halowerk.com/v1/mesh-route

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
nodesarrayJa
linksarrayJa
startstringJa
goalstringJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "nodes",
    "links",
    "start",
    "goal"
  ],
  "additionalProperties": false,
  "properties": {
    "nodes": {
      "type": "array",
      "minItems": 2,
      "maxItems": 500,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      }
    },
    "links": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10000,
      "items": {
        "type": "object",
        "required": [
          "from",
          "to",
          "cost"
        ],
        "additionalProperties": false,
        "properties": {
          "from": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "to": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "cost": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000
          },
          "bidirectional": {
            "type": "boolean",
            "default": true
          }
        }
      }
    },
    "start": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    },
    "goal": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "nodes": [
    "gateway",
    "relay-a",
    "relay-b",
    "sensor"
  ],
  "links": [
    {
      "from": "gateway",
      "to": "relay-a",
      "cost": 1
    },
    {
      "from": "relay-a",
      "to": "sensor",
      "cost": 2
    },
    {
      "from": "gateway",
      "to": "relay-b",
      "cost": 2
    },
    {
      "from": "relay-b",
      "to": "sensor",
      "cost": 4
    }
  ],
  "start": "gateway",
  "goal": "sensor"
}

Ergebnis & Dokumentation

Veröffentlichtes Ergebnisschema anzeigen
{
  "$ref": "https://iot.halowerk.com/v1/mesh-route/schema#/outputSchema"
}

Veröffentlichtes Ergebnisbeispiel öffnen

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →