1.2.5.17 ADP_NoIPDataRequest Function

C

void ADP_NoIPDataRequest (
    uint16_t apduLength,
    const uint8_t *pApdu,
    uint16_t dstAddr,
    uintptr_t apduHandle,
    bool discoverRoute,
    uint8_t qualityOfService
);

Summary

This primitive requests the transfer of a PDU to another device or multiple devices providing a 6LowPAN 16-bit Destination Address.

Description

The ADP No IP Data Request primitive is used to transfer data to to another device or multiple devices in the G3 Network, providing a 6LowPAN 16-bit Destination Address. PDU does not have to be an IPv6 packet, any protocol data can be sent using this primitive. Result is provided in the corresponding ADP Data Confirm callback.

Parameters

ParamDescription
apduLengthThe size of the APDU, in bytes; Up to 1280
pApduPointer to APDU to send; can be any App protocol
dstAddrThe Destination Short Address. Can be a unicast address, a 6LowPAN Group Address, or the 6LowPAN BROADCAST ADDRESS (0x8001)
apduHandleThe handle of the APDU to transmit. This parameter is used to identify in the ADP Data Confirm primitive which request it is concerned with. It can be randomly chosen by the application layer.
discoverRouteIf true, a route discovery procedure will be performed prior to sending the frame if a route to the destination is not available in the routing table. If false, no route discovery is performed.
qualityOfServiceThe requested quality of service (QoS) of the frame to send. Allowed values are 0 (normal priority) and 1 (high priority).

Returns

None.

Example

uint8_t apdu[1280];
uint16_t apduLength;

// ...
// Fill APDU
// ...

ADP_NoIPDataRequest(apduLength, apdu, 0x0001, 0, true, 0);
// Wait for Data Confirm

Remarks

None.