esp_ble_mesh_model_msg_opcode_init() function
Add the message opcode to the beginning of the model message before sending or publishing the model message.
Arguments
data
Pointer to the message data.
opcode
The message opcode.
Return value
ESP_OK on success or error code otherwise.
Notes
This API is only used to set the opcode of the message.