Messages are sent on a channel using zbus_chan_pub(). The following example sends a message on the network_chan channel:
struct network_msg msg = {
.type = NETWORK_DISCONNECT
};
err = zbus_chan_pub(&network_chan, &msg, PUB_TIMEOUT);
The zbus library copies the message, so the original message struct is no longer needed after calling zbus_chan_pub().