TransmitOptions constructor

const TransmitOptions({
  1. bool ack = false,
  2. bool lowPower = false,
  3. bool autoRoute = false,
  4. bool noRoute = false,
  5. bool explore = false,
})

Z-Wave packet transmission options: ack - Request acknowledgment from destination node. Allow routing. noRoute - Send only in direct range. Explicitly disallow all routing. lowPower - Transmit at low output power level (1/3 of normal RF range) autoRoute - If last working route fails or does not exist, then routes from the routing table will be used. explore - If existing routes fail, then resolve new routes via explorer discovery.

Implementation

const TransmitOptions({
  bool ack: false,
  bool lowPower: false,
  bool autoRoute: false,
  bool noRoute: false,
  bool explore: false,
}) : this.raw((ack ? 0x01 : 0x00) |
          (lowPower ? 0x02 : 0x00) |
          (autoRoute ? 0x04 : 0x00) |
          (noRoute ? 0x10 : 0x00) |
          (explore ? 0x20 : 0x00));