Skip to end of metadata
Go to start of metadata

Your device can receive commands from GadgetKeeper in few simple steps:

1. Define remote method or property


Then creating/editing a property or method specify "remote" as its type:

2. Define connection and implement RPC handler


Now you need to decide what protocol GadgetKeeper will use to communicate with your Thing. You have couple of choices:

Connector Communication Protocol RPC Protocol Description
JSON-RPC over Messaging MQTT, XMPP, STOMP JSON-RPC 2.0

Thing uses GadgetKeeper message broker to exchange messages.

GadgetKeeper servers must be reachable from Thing.

JSON-RPC over MQTT MQTT JSON-RPC 2.0

GadgetKeeper and Thing use external MQTT broker to exchange messages.

MQTT message broker must be reachable from both Thing and GadgetKeeper.

JSON-RPC over TCP TCP JSON-RPC 2.0

Thing creates a TCP socket server, GadgetKeeper connects to it to exchange messages.

Thing must be reachable from GadgetKeeper servers.

JSON-RPC over HTTP HTTP JSON-RPC 2.0

Thing creates a HTTP server, GadgetKeeper connects to it to exchange messages.

Thing must be reachable from GadgetKeeper servers.

 

See connectors details on how to configure and implement RPC handler.

 

 

 

  • No labels