Methods
-
<static> instructionParameter(name, value)
-
Create an instruction parameter suitable to passing to
NodeInstructionUrlHelperMixin#queueInstructionUrl.Parameters:
Name Type Description namestring the parameter name
value* the parameter value
Returns:
with
nameandvalueproperties- Type
- object
-
queueInstructionUrl(topic [, parameters] [, nodeId])
-
Generate a URL for posting an instruction request.
Parameters:
Name Type Argument Description topicstring the instruction topic.
parametersArray.<Object> <optional>
an array of parameter objects in the form
{name:n1, value:v1}.nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedReturns:
the URL
- Type
- string
-
updateInstructionStateUrl(instructionId, state)
-
Generate a URL for changing the state of an instruction.
Parameters:
Name Type Description instructionIdnumber the instruction ID to update
stateInstructionState the instruction state to set
- See:
-
- the
InstructionStatesenum for possible state values
- the
Returns:
the URL
- Type
- string
-
viewActiveInstructionsUrl( [nodeId])
-
Generate a URL for viewing active instructions.
Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedReturns:
the URL
- Type
- string
-
viewInstructionUrl(instructionId)
-
Generate a URL to get all details for a specific instruction.
Parameters:
Name Type Description instructionIdnumber the instruction ID to get
Returns:
the URL
- Type
- string
-
viewPendingInstructionsUrl( [nodeId])
-
Generate a URL for viewing pending instructions.
Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedReturns:
the URL
- Type
- string