# Network Simulator

# Network Simulator

This module includes the platform abstraction for OTNS.

## Summary

| ### Functions ||
|---|---|
| `https://openthread.io/reference/group/plat-otns#group__plat-otns_1ga7d8d40e278956b7eacff7dcee6ba887a(const char *aStatus)` | `void` Exports status information to OTNS. |

## Functions

### otPlatOtnsStatus

```
void otPlatOtnsStatus(
  const char *aStatus
)
```
Exports status information to OTNS.

The status information is represented by a null-terminated string with format recognizable by OTNS. Each call to `otPlatOtnsStatus` can send multiple statuses, separated by ';', e.x. "parid=577fbc37;lrid=5". Each status contains key and value separated by '='. Status value can be further separated into multiple fields using ',', e.x. "ping_request=fdde:ad00:beef:0:459e:d7b4:b65e:5480,4,112000".

New statuses should follow these conventions.

Currently, OTNS only supports virtual time simulation.

<br />

| Details ||
|---|---|
| Parameters | |---|---| | `[in] aStatus` | The status string. | |

## 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).