eCLD_ZllCommissionCommandNetworkStartReqCommandSend

teZCL_Status eCLD_ZllCommissionCommandNetworkStartReqCommandSend(
    ZPS_tsInterPanAddress *psDestinationAddress,
    uint8 *pu8TransactionSequenceNumber,
    tsCLD_ZllCommission_NetworkStartReqCommandPayload
*psPayload);

Description

This function is used to send a Network Start Request command to create a new network with a detected Router. The command is sent as an inter-PAN message.

The function is called once the results of a Scan Request command have been received and a detected Router has been selected.

The command payload contains information about the network and the local node, as well as certain data for the target node. This payload information is detailed in Section 44.8.11.

You are required to provide a pointer to a location to receive a Transaction Sequence Number (TSN) for the request. The TSN in the response is set to match the TSN in the request, allowing an incoming response to be paired with a request. This is useful when sending more than one request to the same destination endpoint.

Parameters

  • psDestinationAddress                Pointer to stucture containing PAN ID and address information for target node

  • pu8TransactionSequenceNumber        Pointer to a location to store the Transaction Sequence Number (TSN) of the request

  • psPayload        Pointer to structure containing payload data for the Network Start Request command (see Section 44.8.11)

Returns

  • E_ZCL_SUCCESS

Parent topic:Touchlink functions