gwReceivePacketDone (Function) |
Top Previous Next |
This function works differently depending on the mode (see gwPacketMode).
When in unbuffered mode, this function releases the data packet and sends a reply to the sender. In buffered mode, this function has no effect as the reply was already sent by the firmware.
It is very important to use this function after calling the gwReceivePacket function block. Otherwise no further data packets will be received.
Input: reply : INT (0,128..255) Reply code returned to the sender. Returning 0 (zero) indicates success and values 128..255 are reserved for user-defined return codes. Other values will result in packet rejection (return code 4).
Returns: INT
Declaration: FUNCTION gwReceivePacketDone : INT;
Example: INCLUDE rtcu.inc |