How to configure the UDP listening port in Xbee S6B + Teensy 3.1?

Hi all,

Using Teensy 3.1 + XBee S6B, trying to configure via SPI. All firmware is updated to the latest versions.

I’m having some trouble understanding how to program the UDP listening port.

On page 107 of the manual, (, the “C0” description is unclear to me.

How does this work? Does this control the serial port or the listening port? FYI “AP” is set to “API Mode Without Escapes [1]”

If C0 does not control the UDP listening port, what command do I need to use instead?

Thank you!

For reference, here is the .ino file: