This object represents a CommandFusion LAN Bridge device on your CFLink bus.
Classes
- Slot
- A slot represents a single communication (routing) slot on a LAN Bridge device
Members
-
<static, constant> CONFIGURATION_CHANGE :String
-
This event is being sent when the LANBridge's device configuration changes (upon receiving the CFG message). Your callback function should have the prototype: function(event, sender) event is the name of this event sender is the LANBridge object
Methods
- Return type
- CFLink.LANBridge.Slot
getInfo
(
)
Send a CFLink packet to the device to obtain the general information about this LANBridge
device (IP address, DCHP settings, etc)
getSlot
(
slotNumber
)
Parameters:
Name | Description | |
---|---|---|
slotNumber |
Get a CFLink.LANBridge.Slot object for the numbered slot
sendData
(
slotNumber
,
data
)
Parameters:
Name | Type | Description |
---|---|---|
slotNumber |
Number | slot 1 (CFLink), 2 (RS232), 3 (UDP broadcast) or 11-20 (user-bridgeable) |
data |
string | the data to send, provided as a string (even if binary data - a string made of binary characters) |
Send data to the specified LANBridge communication slot.
setBroadcasting
(
isEnabled
)
Parameters:
Name | Type | Description |
---|---|---|
isEnabled |
boolean | pass true to enable UDP Broadcasting, false to disable. |
Set the UDP Broadcasting Mode of the device
setCFLinkID
(
id
)
Parameters:
Name | Description | |
---|---|---|
id |
Override to make sure we update our ports' device ID
setDHCP
(
isEnabled
)
Parameters:
Name | Type | Description |
---|---|---|
isEnabled |
boolean | true to enable DHCP, false to disable |
Send a DHCP mode change command to the device (effective after device resets)
setGateway
(
ip
)
Parameters:
Name | Description | |
---|---|---|
ip |
Full IP Gateway in IPv4 format, eg. 192.168.0.1 |
Send an IP gateway address change command to the device.
setIP
(
ip
)
Parameters:
Name | Description | |
---|---|---|
ip |
Full IP Address in IPv4 format, eg. 192.168.0.100 |
Send an IP address change command to the device (effective after device resets)
setSubnetMask
(
ip
)
Parameters:
Name | Description | |
---|---|---|
ip |
Full Subnet Mask in IPv4 format, eg. 255.255.255.0 |
Send a subnet mask change command to the device
setTime
(
year
,
month
,
day
,
weekday
,
hour
,
minute
,
second
,
timezone
)
Parameters:
Name | Type | Description |
---|---|---|
year |
Number | |
month |
Number | |
day |
Number | Day in month |
weekday |
Number | Day of the week 1-7 |
hour |
Number | |
minute |
Number | |
second |
Number | |
timezone |
Number | the timezone from lookup table (1-40) |
Set the time of the realtime clock on board the device