Skip to main content

pamoja_gateway_push_data

Function pamoja_gateway_push_data 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_push_data( token: u16, gateway: *const u8, uplink: *mut PamojaGatewayUplink, out_packet: *mut *mut PamojaGatewayPacket, ) -> PamojaStatus
Expand description

Builds the PUSH_DATA that forwards an uplink.

§Arguments

  • token - the random token the acknowledgment carries back.
  • gateway - the gateway’s eight-byte identifier.
  • uplink - the uplink, which this call takes over and releases.
  • out_packet - receives the packet.

§Returns

PamojaStatus::Ok, or PamojaStatus::InvalidArgument for a null argument.

§Safety

gateway must point at PAMOJA_GATEWAY_EUI_LEN readable bytes, uplink must be a live handle that is not used again, and out_packet must be writable.