> For the complete documentation index, see [llms.txt](https://docs.labii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.labii.com/widgets/column-widgets/device.md).

# Device

## Overview

Device-related widgets are user interface elements that allow users to interact with and control various hardware components of their device such as the camera, microphone, and GPS.

## Serial Port

[Serial Port](https://www.labii.com/widgets/serial-port/) is a widget that can read data from a serial port and support RS-232 communication protocol. The widget has a user interface that allows the user to configure the serial port settings, such as baud rate and number of data bits, and display the incoming data in a readable format, and write data back to device.

{% embed url="<https://youtu.be/HazpAhwE7QY>" %}

**Readonly view:**

Click the **Write** button to write data to serial port.

<figure><img src="/files/n5WU0kCV816gonYi37B4" alt=""><figcaption></figcaption></figure>

**Edit view:**

Click the Connect button to read data from serial port.

<figure><img src="/files/CcJCRUoIdO19AqWa8Jf3" alt=""><figcaption></figcaption></figure>

\
**Form view:**

Same as the Edit view.

**Configuration:**

<figure><img src="/files/4cjSZZkDI9ibveKBUNbg" alt=""><figcaption></figcaption></figure>

**Default value:**

Any text.

**Import value:**

Any text.

## NFC

NFC (Near Field Communication) reader and writer widgets are user interface elements that allow users to interact with and control NFC-enabled devices. The NFC widget can be used to read data from an NFC tag or card, and write data to an NFC tag or card. The widget is currently only working in Android Chrome.

**Readonly view:**

<figure><img src="/files/Gc7QWquSE3T1mH3xh2fA" alt=""><figcaption></figcaption></figure>

**Edit view:**

The data will be read into the input box when your cell phone is close to a NFC tag.

<figure><img src="/files/be3TYWmquNG4qgmxRUuV" alt=""><figcaption></figcaption></figure>

**Form view:**

The data will be read into the input box when your cell phone is close to a NFC tag.

<figure><img src="/files/5q93XZ1Q4TtjDanBCarQ" alt=""><figcaption></figcaption></figure>

**Configuration:**

<figure><img src="/files/Eu1eBSd839mieKFUzxr0" alt=""><figcaption></figcaption></figure>

**Default value:**

Any text.

**Import value:**

Any text.
