code: public static byte[] setSamplingInterval(int value) {
          if (value > MAX_SAMPLING_INTERVAL) {
              value = MAX_SAMPLING_INTERVAL;
          } else if (value < MIN_SAMPLING_INTERVAL) {
              value = MIN_SAMPLING_INTERVAL;
          }
          return new byte[]{START_SYSEX, SAMPLING_INTERVAL, (byte) (value & 0x7F), (byte) ((value >>> 7) & 0x7F), END_SYSEX};
      }
docs: Creates a message to set sampling interval.<br/>
  The sampling interval sets how often analog data and i2c data is reported
  to the client. The default value is 19 milliseconds.
  
  @param value sampling interval in milliseconds
  @return Firmata message to set sampling interval