> For the complete documentation index, see [llms.txt](https://doc.youzhuan.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.youzhuan.net/ctrl-host/yun-dui-jie/chang-yong-shu-ju-lei-jie-shao/devicedata.md).

# DeviceData

### 路径

com.youzhuan.mqttclient.device.DeviceData

### 获取对象

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

#### 方法原型

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

### 数据介绍

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