buildSendDataMessage function

List<int> buildSendDataMessage(
  1. int frameType,
  2. int nodeId,
  3. List<int> cmdData, {
  4. TransmitOptions transmitOptions = TransmitOptions.normal,
})

Return message data for a zwave send data command message where nodeID the destination node or 0xFF for broadcast.

Implementation

List<int> buildSendDataMessage(int frameType, int nodeId, List<int> cmdData,
    {TransmitOptions transmitOptions = TransmitOptions.normal}) {
  final functParam = <int>[
    nodeId,
    cmdData.length,
  ];
  functParam.addAll(cmdData);
  functParam.add((transmitOptions).flags);

  return buildFunctMessage(frameType, FUNC_ID_ZW_SEND_DATA, functParam);
}