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:

ConnectorCommunication ProtocolRPC ProtocolDescription
JSON-RPC over MessagingMQTT, XMPP, STOMPJSON-RPC 2.0

Thing uses GadgetKeeper message broker to exchange messages.

GadgetKeeper servers must be reachable from Thing.

JSON-RPC over MQTTMQTTJSON-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 TCPTCPJSON-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 HTTPHTTPJSON-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