# agora_iot_base.h (/zh-CN/api-reference/iot-apaas/device-sdk/full/base)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
本页提供声网灵隼设备端 SDK 的 `agora_iot_base.h` 文件的 API 参考。
## 类型定义 [#类型定义]
### agora_iot_handle_t [#agora_iot_handle_t]
```c
typedef void* agora_iot_handle_t;
```
SDK 的句柄。
### agora_iot_error_e [#agora_iot_error_e]
```c
typedef enum {
ERR_SUCCESS = 0,
ERR_FAILED = -1,
ERR_INVALID_ARGUMENT = -2,
} agora_iot_error_e;
```
错误码。
| 错误码 | 描述 |
| --- | --- |
| `ERR_SUCCESS` | 0:调用成功。 |
| `ERR_FAILED` | -1:通用错误。 |
| `ERR_INVALID_ARGUMENT` | -2:参数无效。 |