How to send and receive text messages with the ESP32 SDK

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

I’m using the ESP32 SDK (v0.3.1), but I can’t find how to send or receive text messages. Does it support room text messages?

You can use Data Packets (user packets) to send and receive text messages with the ESP32 SDK.

See the API reference for an overview of how it works: