requestNodeList method

Future<NodeListReport> requestNodeList()

Return a Future that completes with a current node list.

Implementation

Future<NodeListReport> requestNodeList() async {
  int sequenceNumber = nextSequenceNumber;
  var report = await commandHandler!.request(ZwRequest<NodeListReport>(
      logger,
      id,
      buildSendDataRequest(id, [
        COMMAND_CLASS_NETWORK_MANAGEMENT_PROXY,
        COMMAND_NODE_LIST_GET,
        sequenceNumber,
      ]),
      processResponse: (data) => NodeListReport(data),
      resultKey: NodeListReport));

//    if (sequenceNumber != report.sequenceNumber)
//      throw ZwException('expected sequence number $sequenceNumber,'
//          ' but got ${report.sequenceNumber}');

  return report;
}