1.2.5.99 LBP_ShortAddressAssign Function
C
void LBP_ShortAddressAssign ( uint8_t *pExtAddress uint16_t assignedAddress );
Summary
Assigns a short address to a device willing to join.
Description
This primitive allows the upper layer to assign a short address to a device willing to join. It is intended to be called when receiving the LBP_COORD_JOIN_REQUEST_IND_CALLBACK, so Bootstrap for Joining node process can continue.
Parameters
Param | Description |
---|---|
pExtAddress | Pointer to extended address of device willing to join |
assignedAddress | The network address to be assigned. Set to 0xFFFF to reject device. |
Returns
None.
Example
App_JoinRequestIndication(uint8_t* pLbdAddress)
{
uint16_t assignedAddress;
// Check extended address
// Assign 16-bit address
assignedAddress = 0x0001;
LBP_ShortAddressAssign(pLbdAddress, assignedAddress);
}
Remarks
This function is part of the Coordinator LBP Module.