#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_mqtt_client_publish(
client: *mut PamojaMqttClient,
topic: *const c_char,
payload: *const u8,
payload_len: usize,
) -> PamojaStatusExpand description
Publishes a payload to a topic.
§Returns
PamojaStatus::Ok once the payload is handed to the transport, or an error
status.
§Safety
client must be a live handle from pamoja_mqtt_client_new; topic must be
a valid null-terminated UTF-8 string; and payload must point to at least
payload_len bytes, or be null when payload_len is 0.