# Thiết bị

## Tổng quan

* Thiết bị (**Device**): là một thực thể ảo trên hệ thống đại diện cho thiết bị thật ở bên ngoài.
* Mỗi thiết bị có ID để định danh trên hệ thống.

## Tạo thiết bị

* Từ tab Quản lí thực thể -> Thiết bị -> click "+ Tạo mới" để tạo thiết bị.

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

* Điền tên thiết bị, key,  chọn tổ chức, nhóm, mẫu thiết bị nếu có
* Hearbeat  là thời gian chờ trước khi coi thiết bị là mất kết nối (tính bằng giây, ví dụ 172800 = 2 ngày)
* Tên thiết bị là trường duy nhất bắt buộc
* Click ✓ để lưu thiết bị.

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

{% hint style="info" %}
Người dùng có thể nhập **key** là imei, serial,... của thiết bị thật để định danh, nếu bỏ trống mặc định **key** sẽ là **ID** của thiết bị trên hệ thống.
{% endhint %}

{% hint style="info" %}
Trong mỗi dự án thì **key** chỉ được gán cho duy nhất một thiết bị.
{% endhint %}

## Sửa thiết bị

* Từ tab Quản lí thực thể -> Thiết bị -> Chọn thiết bị cần sửa -> Click chọn "Chỉnh sửa".
* Sửa tên, tổ chức, nhóm hoặc key.
* Click ✓ để lưu thiết bị.

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

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

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

## Xem thuộc tính

Từ giao diện Chi tiết thiết bị -> Thuộc tính

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

## Xóa thiết bị

Từ tab Quản lí thực thể -> Thiết bị -> Chọn thiết bị cần xóa -> Click chọn "Xóa thiết bị".

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://innoway.gitbook.io/innoway/tinh-nang/quan-li-thuc-the/thiet-bi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
