# RS232

## {{@218#bkmrk-open-iot-and-iiot-ga}}


Link to repositories:

- [C](https://github.com/Redisage/PAC-ESP32/tree/master/C_examples/rs232)
- [MicroPython](https://github.com/Redisage/PAC-ESP32/tree/master/uPython_examples/rs232)

### Connection

Connect RS232\_1 port to the RS232\_2 port in the loopback configuration.

[![1qnimage.png](https://doc.redisage.com/uploads/images/gallery/2024-06/scaled-1680-/YXu1qnimage.png)](https://doc.redisage.com/uploads/images/gallery/2024-06/YXu1qnimage.png)

### Description

This example shows how to handle the RS232 communication via UART. After flashing both ports should send and read data from each other.

### Console output

[![image.png](https://doc.redisage.com/uploads/images/gallery/2024-06/scaled-1680-/Hh5image.png)](https://doc.redisage.com/uploads/images/gallery/2024-06/Hh5image.png)