# DeviceData

### 路径

com.youzhuan.mqttclient.device.DeviceData

### 获取对象

此类是一个单例类，通过一个如下静态方法获取

#### 方法原型

```
public static DeviceData getInstance(){
    ...
    return deviceData;
}
```

### 数据介绍

| 变量名       | 类型                         | 作用           | 获取方法           |
| --------- | -------------------------- | ------------ | -------------- |
| devices   | List\<Device>              | 所有的设备        | getDevices()   |
| deviceMap | Map\<String,List\<Device>> | 按服务器分类后所有的设备 | getDeviceMap() |


---

# 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://doc.youzhuan.net/ctrl-host/yun-dui-jie/chang-yong-shu-ju-lei-jie-shao/devicedata.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.
