ot::Mle::MleRouter::SetLeaderWeight() method
Sets the Leader Weighting value for this Thread interface. Directly sets the Leader Weight to the new value replacing its previous value (which may have been determined from a previous call to `SetDeviceProperties()`).
Syntax
void SetLeaderWeight(uint8_t aWeight); Arguments
aWeight
The Leader Weighting value.