IR (I/O Sample Rate)

This command applies to the XBee/XBee-PRO Zigbee RF Module.

Set or read the I/O sample rate to enable periodic sampling.

When set, this parameter causes the device to sample all enabled digital I/O and analog inputs at a specified interval. Samples will be sent to the address specified by the DH and DL commands. The target device must be operating in API mode in order to output the received sample data.

If you set the I/O sample rate to greater than 0, the device samples and transmits all enabled digital I/O and analog inputs every IR milliseconds. I/O Samples transmit to the address specified by DT.

To enable periodic sampling, set IR to a non-zero value, and enable the analog or digital I/O functionality of at least one device pin. The sample rate is measured in milliseconds.

For more information, see the following commands:

WARNING! If you set IR to 1 or 2, the device will not keep up and many samples will be lost.

Parameter range

0, 0x32 - 0xFFFF (ms)

Default

0