Skip to content

Commit

Permalink
Ember: Always set TRUST_CENTER_ADDRESS_CACHE_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Jul 10, 2024
1 parent 4adfea3 commit eff72d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/adapter/ember/adapter/emberAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ const DEFAULT_STACK_CONFIG: Readonly<StackConfig> = {
};
/** Default behavior is to disable app key requests */
const ALLOW_APP_KEY_REQUESTS = false;
/** @see EzspConfigId.TRUST_CENTER_ADDRESS_CACHE_SIZE */
const TRUST_CENTER_ADDRESS_CACHE_SIZE = 2;

/**
* NOTE: This from SDK is currently ignored here because of issues in below links:
Expand Down Expand Up @@ -760,6 +762,8 @@ export class EmberAdapter extends Adapter {
// call before any other command, else fails
await this.emberVersion();

/** The address cache needs to be initialized and used with the source routing code for the trust center to operate properly. */
await this.emberSetEzspConfigValue(EzspConfigId.TRUST_CENTER_ADDRESS_CACHE_SIZE, TRUST_CENTER_ADDRESS_CACHE_SIZE);
/** MAC indirect timeout should be 7.68 secs (STACK_PROFILE_ZIGBEE_PRO) */
await this.emberSetEzspConfigValue(EzspConfigId.INDIRECT_TRANSMISSION_TIMEOUT, 7680);
/** Max hops should be 2 * nwkMaxDepth, where nwkMaxDepth is 15 (STACK_PROFILE_ZIGBEE_PRO) */
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/ember/ezsp/ezsp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4712,7 +4712,7 @@ export class Ezsp extends EventEmitter<EzspEventMap> {
*/
ezspRemoteSetBindingHandler(entry: EmberBindingTableEntry, index: number, policyDecision: SLStatus): void {
logger.debug(
`ezspRemoteSetBindingHandler(): callback called with: [entry=${entry}], [index=${index}], ` +
`ezspRemoteSetBindingHandler(): callback called with: [entry=${JSON.stringify(entry)}], [index=${index}], ` +
`[policyDecision=${SLStatus[policyDecision]}]`,
NS,
);
Expand Down

0 comments on commit eff72d9

Please sign in to comment.