"ImportError: cannot import name UART"

I am trying to send data via UART to the xbee 3 but my code returns this error message (title). This is the code i used:

from machine import UART #(<-the error is in this line)

uart = UART(1, 9600) # init with given baudrate
uart.init(9600, bits=8, parity=None, stop=1) # init with given parameters
[…]

What product is this code running on?

I’m using DigiMesh on the through hole version of the Digi XBee 3 Zigbee 3 RF Module (https://www.digi.com/products/embedded-systems/digi-xbee/rf-modules/2-4-ghz-rf-modules/xbee3-zigbee-3).
Every other library so far worked fine. It’s just this library

If I recall, that function is not supported on that product.

oh, that’s very unfortunate. Is there another way to use UART on this xbee?

https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_uart_constants.htm%3FTocPath%3DAccess%2520the%2520primary%2520UART|_____1