rfbcRawSend (Function) |
Top Previous Next |
This function will send a raw RFBC packet. If a destination address is given an acknowledgment is expected to be received. If no destination address is given the function simply returns without waiting for an acknowledge.
Input: id : DINT [0 .. 16_777_215] (default 0) ID of the device the request is sent to. 0 = Broadcast notification to all listening devices.
number : INT [-1,0 .. 255] (default -1) This sets the current packet number. If "-1", then last packet number +1 will be used.
flags : INT [0 .. 255] (default 0) Packet flags.
type : INT [0 .. 255] (default 0) Packet message type.
datasize : INT [0 .. 54] Size of data.
data : PTR Address of the memory block that will be sent as a payload.
wait : BOOL [TRUE, FALSE] (default TRUE) Wait for acknowledgment of reception, if set to FALSE then the function will return without waiting for an acknowledgment after transmitting the packet once.
Output: None.
Returns: INT
Declaration: FUNCTION rfbcRawSend : INT;
Example: INCLUDE rtcu.inc |