handleApplicationCommandHandler method

  1. @override
void handleApplicationCommandHandler(
  1. List<int> data
)

FUNC_ID_APPLICATION_COMMAND_HANDLER

Implementation

@override
void handleApplicationCommandHandler(List<int> data) {
  /*
  application command handler message:
  data[0] - 0x01 SOF
  data[1] - message length excluding SOF and checksum
  data[2] - 0x00 request or 0x01 response
  data[3] - function id 0x04 application command
  data[4] - rxStatus
  data[5] - source node
  data[6] - command length
  data[7] - command class (e.g. COMMAND_CLASS_METER)
  data[*] - command data
  data[n] - checksum
  */
  nodeWithId(data[5]).dispatchApplicationCommand(data);
}