exred_node_aws_iot_thingshadow_in v0.2.0 Exred.Node.AwsIotThingShadowIn

Subcribes to topics related to a thing shadow in the aws iot cloud.

By default all topics are subscribed for but this can be changed by unchecking checkmarks next to the unwanted topics in the config tab.

Available topics:

  • /update/accepted
  • /update/rejected
  • /update/document
  • /update/delta
  • /get/accepted
  • /get/rejected
  • /delete/accepted
  • /delete/rejected

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

daemon_child_specs/1 needs to return a list of child specs. These child processes will be started under the DaemonNodeSupervisor

fire/1 is called when the user clicks on the play button on a node in the UI (and with that triggers a ‘fire’ event). It should return a new_state

Link to this section Functions

Link to this function add_out_node(pid, new_out)
Link to this function child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function daemon_child_specs(config)

daemon_child_specs/1 needs to return a list of child specs. These child processes will be started under the DaemonNodeSupervisor.

Callback implementation for Exred.NodePrototype.daemon_child_specs/1.

fire/1 is called when the user clicks on the play button on a node in the UI (and with that triggers a ‘fire’ event). It should return a new_state.

Since this has access to the node’s state it can be used to implement user triggered actions like logging the state, sending messages from the node or creating debug events that are displayed in the debug tab in the UI.

For an example of how to use it see the Trigger node.

Callback implementation for Exred.NodePrototype.fire/1.

Link to this function get_default_config()
Link to this function set_out_nodes(pid, out_nodes)
Link to this function start_link(list)