#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_gateway_pull_resp(
token: u16,
transmit: PamojaGatewayTxpk,
payload: *const u8,
payload_len: usize,
out_packet: *mut *mut PamojaGatewayPacket,
) -> PamojaStatusExpand description
Builds the PULL_RESP that asks a gateway to transmit.
§Arguments
token- the random token the TX_ACK carries back.transmit- what to transmit, and when.payload- the packet itself.payload_len- its length.out_packet- receives the packet.
§Returns
PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null argument.
§Safety
payload must point at payload_len readable bytes or be null, and out_packet must be
writable.