new Command(properties, networkPropertiesopt)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
Object | the properties of the object | ||||||||||||||||||||||||||||||||||||
networkProperties |
Object |
<optional> |
{} |
Properties
|
- Source:
Methods
(async) searchStatus(commandFilteropt, pageSizeopt) → {Promise.<Collection.<JSON>>}
Get all status messages associated to a specific command
route: /systems/{sysid}/controlstreams/{csid}/commands/{cmdid}/status
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
commandFilter |
CommandFilter |
<optional> |
= new CommandFilter() | default Command filter |
pageSize |
Number |
<optional> |
10 | default page size |
- Source:
Returns:
- response as JSON
- Type
- Promise.<Collection.<JSON>>
(async) searchStatus(commandFilteropt, pageSizeopt) → {Promise.<Collection.<JSON>>}
Get all status messages associated to a specific command
route: /systems/{sysid}/controls/{dsid}/commands/{cmdid}/status
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
commandFilter |
CommandFilter |
<optional> |
= new CommandFilter() | default Command filter |
pageSize |
Number |
<optional> |
10 | default page size |
- Source:
Returns:
- response as JSON
- Type
- Promise.<Collection.<JSON>>
streamStatus(commandFilteropt, callback)
Stream all status messages associated to a specific command
route: /systems/{sysid}/controlstreams/{csid}/commands/{cmdid}/status
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
commandFilter |
CommandFilter |
<optional> |
= new CommandFilter() | default Command filter |
callback |
function |
- Source:
streamStatus(commandFilteropt, callback)
Stream all status messages associated to a specific command
route: /systems/{sysid}/controls/{dsid}/commands/{cmdid}/status
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
commandFilter |
CommandFilter |
<optional> |
= new CommandFilter() | default Command filter |
callback |
function |
- Source: