1.2.5.85 LBP_AdpNetworkJoinRequest Function

C

void LBP_AdpNetworkJoinRequest (
    uint16_t panId,
    uint16_t lbaAddress,
    uint8_t mediaType
);

Summary

This primitive allows the upper layer to join an existing network.

Description

The LBP Join Request primitive allows the upper layer to join an existing network.

Result is provided in the corresponding LBP Join Confirm callback.

Parameters

ParamDescription
panIdThe 16-bit PAN identifier of the network to join
lbaAddressThe 16-bit short address of the device acting as a 6LowPAN bootstrap agent (relay)
mediaTypeThe Media Type to use for frame exchange with LBA. Only used in Hybrid Profile.

Returns

None.

Example

App_DiscoveryIndication(ADP_PAN_DESCRIPTOR *panDescriptor)
{
    uint8_t mediaType = MAC_WRP_MEDIA_TYPE_REQ_PLC_BACKUP_RF;

    if (panDescriptor-> == MAC_WRP_MEDIA_TYPE_IND_RF)
    {
        mediaType = MAC_WRP_MEDIA_TYPE_REQ_PLC_BACKUP_PLC;
    }

    LBP_AdpNetworkJoinRequest(panDescriptor->panId, panDescriptor->panId,
        mediaType);
    // Wait for Join Confirm
}

Remarks

This function is part of the Device LBP Module.