Skip to main content

pamoja_gateway_pull_resp

Function pamoja_gateway_pull_resp 

Source
#[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, ) -> PamojaStatus
Expand 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.