Blackmagic Design™ SmartView control protocol client parser
Kind: global class
If no ACK is received for this many ms after sending a command, the connection is closed. Set to 0 for disabling timeout.
Kind: instance property of SmartViewClient
Default: 3000
Checks if there is a connection
Kind: instance property of SmartViewClient
Connects to a SmartView device
Kind: instance method of SmartViewClient
Param | Type | Description |
---|---|---|
ip | string |
IP address or host name |
[connectListener] | function |
added as connect listener |
Closes connection if connected
Kind: instance method of SmartViewClient
Sends a command to the device
Kind: instance method of SmartViewClient
Emits: change
Param | Type | Description |
---|---|---|
header | string |
the block header, e.g. 'MONITOR A' |
props | object |
the properties to set |
[callback] | function |
called when the device acknowledges the command |
Returns the current state
Kind: instance method of SmartViewClient
Returns: object
- props - the properties which are currently set
Param | Type | Description |
---|---|---|
header | string |
the block header, e.g. 'MONITOR A' |
Connection established
Kind: event emitted by SmartViewClient
Error happened
Kind: event emitted by SmartViewClient
Param | Type |
---|---|
error | Error |
Connection closed
Kind: event emitted by SmartViewClient
A state object has been changed.
Kind: event emitted by SmartViewClient
Param | Type | Description |
---|---|---|
header | string |
the block header, e.g. 'MONITOR A' |