Muscat app — Automatically finds our robots on the same network so you can connect and control them right away. PC · Mac · MobileGet the app
Muscat PK
Log in
Development

External integration — Plugin Router

@plugin.router.on("/hello")          # request → response
def hello(payload, meta):
    if not payload.get("name"):
        raise PluginRouteError(400, "name required")
    return {"msg": f"hi {payload['name']}"}

plugin.router.emit("/state", {"busy": True})
curl -X POST http://<robot>/common/plugin/<plugin_id>/hello -d '{"name":"kim"}'
# → {"msg": "hi kim"}      without a name → 400 name required

The same address is reachable over REST · Socket.IO · TCP · MQTT · WebRTC