This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

API to get Info from router



Is there any API to get information from the router, about the device that is connected to a router?

  • I assume that you're talking about the associated device list.
    In nwk_globals.c, there is the array associated_devices_t AssociatedDevList[NWK_MAX_DEVICES];

    the structure of associated_devices_t has the following format:

    typedef struct
    {
      UINT16 shortAddr;                 // Short address of associated device
      uint16 addrIdx;                   // Index from the address manager
      byte nodeRelation;
      byte devStatus;                   // bitmap of various status values
      byte assocCnt;
      linkInfo_t linkInfo;
    } associated_devices_t;

    You can then use the utility function in AddrMgr.h called AddrMgrExtAddrLookup to look up the extended address
    of each device in this table.

  • Thanks for your reply. I will look into.