code: public void setPower(int power)
      {
          if (power < -128 || 127 < power)
          {
              throw new IllegalArgumentException("'power' is out of the valid range: " + power);
          }
  
          mPower = power;
  
          getData()[POWER_INDEX] = (byte)power;
      }
docs: Set the transmission power in dBm.
  
  @param power
  The transmission power in dBm. The valid range is from -128 to 127.
  
  @throws IllegalArgumentException
  The given value is out of the valid range.