# otMessageSettings Struct Reference

# otMessageSettings


`#include <openthread/message.h>`

Represents a message settings.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-message-settings#structot_message_settings_1aab9429e8b3c7ab95aba741e2090afb6a` | `bool` TRUE if the message should be secured at Layer 2. |
| `https://openthread.io/reference/struct/ot-message-settings#structot_message_settings_1a8a86c28cb1211444c4b2ac43d95a3701` | `uint8_t` Priority level (MUST be a `OT_MESSAGE_PRIORITY_*` from `otMessagePriority`). |

## Public attributes

### mLinkSecurityEnabled

```
bool otMessageSettings::mLinkSecurityEnabled
```
TRUE if the message should be secured at Layer 2.

### mPriority

```
uint8_t otMessageSettings::mPriority
```
Priority level (MUST be a `OT_MESSAGE_PRIORITY_*` from `otMessagePriority`).

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