> For the complete documentation index, see [llms.txt](https://mwx.twelite.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mwx.twelite.info/latest_en/api-reference/classes/pktparser/idenify_packet_type.md).

# idenify\_packet\_type()

Determines the type of packet using the packet data byte sequence as input. The return value is [E\_PKT](/latest_en/api-reference/classes/pktparser/e_pkt.md).

```cpp
E_PKT identify_packet_type(uint8_t* p, uint8_t u8len)
```

If the packet cannot be interpreted as a specific packet, `E_PKT::PKT_ERROR` is returned.
