Send2() - Send Custom Packets to Port 2 Command
The Send2() command sends out a custom string to the 2nd port.
You can format the message to send as a hex or a text string.
|
This does not work on every device. This is mainly for the 232 devices and the DDNG485. |
| This does not work on the DDNG485 V3 as of 8/24. You can still order the V2 gateway or try using the SendP() command if you need this functionality. |
Syntax
Hex String
Send2(x,y,z,…,n)
Where each value is a hexidecimal value separated by commas.
There is no fixed length to this command as it depends on the packet structure of the receiving device.
ASCII Text String
Send2("text")
Where a string of ASCII characters is encapuslated between the quote marks.
There is no fixed length to this command as it depends on the packet structure of the receiving device.
| Some devices require a carrage return at the end of a packet to indicate the end of a message. The hex value of a carriage return is 0x0D. The ASCII value of a carriage return is \r. |
Examples
Example 1
Sending a custom hex string.
{
Send2(0xAB,0xF1,0xFF,0x07,0xD5,0x0E,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x09,0x7E) //sOmfy Group command.
}