# otServiceConfig Struct Reference

# otServiceConfig


`#include <openthread/netdata.h>`

Represents a Service configuration.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-service-config#structot_service_config_1a9b0829ebb4b65f06840aadf704735387` | `uint32_t` IANA Enterprise Number. |
| `https://openthread.io/reference/struct/ot-service-config#structot_service_config_1a6d65ef7769a4022d9080bf2abddea9ca` | `https://openthread.io/reference/struct/ot-server-config` The Server configuration. |
| `https://openthread.io/reference/struct/ot-service-config#structot_service_config_1ac48721f7db6507ccfb23d2f4c4537bdf[252]` | `uint8_t` Service data bytes. |
| `https://openthread.io/reference/struct/ot-service-config#structot_service_config_1a864a568fa1d83151c3dac7ba5b2f418f` | `uint8_t` Length of service data. |
| `https://openthread.io/reference/struct/ot-service-config#structot_service_config_1a8b032fb5cf245669883d617a46e2b7a9` | `uint8_t` Service ID (when iterating over the Network Data). |

## Public attributes

### mEnterpriseNumber

```
uint32_t otServiceConfig::mEnterpriseNumber
```
IANA Enterprise Number.

### mServerConfig

```
otServerConfig otServiceConfig::mServerConfig
```
The Server configuration.

### mServiceData

```
uint8_t otServiceConfig::mServiceData[252]
```
Service data bytes.

### mServiceDataLength

```
uint8_t otServiceConfig::mServiceDataLength
```
Length of service data.

### mServiceId

```
uint8_t otServiceConfig::mServiceId
```
Service ID (when iterating over the Network Data).

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).