tinkerforge 2.1.25 → 2.1.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tinkerforge/brick_dc.rb +2 -2
  3. data/lib/tinkerforge/brick_hat.rb +2 -2
  4. data/lib/tinkerforge/brick_hat_zero.rb +2 -2
  5. data/lib/tinkerforge/brick_imu.rb +2 -2
  6. data/lib/tinkerforge/brick_imu_v2.rb +2 -2
  7. data/lib/tinkerforge/brick_master.rb +8 -2
  8. data/lib/tinkerforge/brick_red.rb +2 -2
  9. data/lib/tinkerforge/brick_servo.rb +2 -2
  10. data/lib/tinkerforge/brick_silent_stepper.rb +2 -2
  11. data/lib/tinkerforge/brick_stepper.rb +2 -2
  12. data/lib/tinkerforge/bricklet_accelerometer.rb +2 -2
  13. data/lib/tinkerforge/bricklet_accelerometer_v2.rb +2 -2
  14. data/lib/tinkerforge/bricklet_air_quality.rb +2 -2
  15. data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
  16. data/lib/tinkerforge/bricklet_ambient_light_v2.rb +2 -2
  17. data/lib/tinkerforge/bricklet_ambient_light_v3.rb +2 -2
  18. data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
  19. data/lib/tinkerforge/bricklet_analog_in_v2.rb +2 -2
  20. data/lib/tinkerforge/bricklet_analog_in_v3.rb +2 -2
  21. data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
  22. data/lib/tinkerforge/bricklet_analog_out_v2.rb +2 -2
  23. data/lib/tinkerforge/bricklet_analog_out_v3.rb +2 -2
  24. data/lib/tinkerforge/bricklet_barometer.rb +37 -3
  25. data/lib/tinkerforge/bricklet_barometer_v2.rb +2 -2
  26. data/lib/tinkerforge/bricklet_can.rb +3 -3
  27. data/lib/tinkerforge/bricklet_can_v2.rb +2 -2
  28. data/lib/tinkerforge/bricklet_co2.rb +2 -2
  29. data/lib/tinkerforge/bricklet_co2_v2.rb +3 -3
  30. data/lib/tinkerforge/bricklet_color.rb +2 -2
  31. data/lib/tinkerforge/bricklet_color_v2.rb +2 -2
  32. data/lib/tinkerforge/bricklet_compass.rb +2 -2
  33. data/lib/tinkerforge/bricklet_current12.rb +2 -2
  34. data/lib/tinkerforge/bricklet_current25.rb +2 -2
  35. data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
  36. data/lib/tinkerforge/bricklet_distance_ir_v2.rb +2 -2
  37. data/lib/tinkerforge/bricklet_distance_us.rb +2 -2
  38. data/lib/tinkerforge/bricklet_distance_us_v2.rb +2 -2
  39. data/lib/tinkerforge/bricklet_dmx.rb +2 -2
  40. data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
  41. data/lib/tinkerforge/bricklet_dual_button_v2.rb +2 -2
  42. data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
  43. data/lib/tinkerforge/bricklet_dust_detector.rb +2 -2
  44. data/lib/tinkerforge/bricklet_e_paper_296x128.rb +2 -2
  45. data/lib/tinkerforge/bricklet_energy_monitor.rb +2 -2
  46. data/lib/tinkerforge/bricklet_gps.rb +2 -2
  47. data/lib/tinkerforge/bricklet_gps_v2.rb +2 -2
  48. data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
  49. data/lib/tinkerforge/bricklet_hall_effect_v2.rb +2 -2
  50. data/lib/tinkerforge/bricklet_humidity.rb +2 -2
  51. data/lib/tinkerforge/bricklet_humidity_v2.rb +2 -2
  52. data/lib/tinkerforge/bricklet_industrial_analog_out.rb +2 -2
  53. data/lib/tinkerforge/bricklet_industrial_analog_out_v2.rb +2 -2
  54. data/lib/tinkerforge/bricklet_industrial_counter.rb +2 -2
  55. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +2 -2
  56. data/lib/tinkerforge/bricklet_industrial_digital_in_4_v2.rb +2 -2
  57. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +2 -2
  58. data/lib/tinkerforge/bricklet_industrial_digital_out_4_v2.rb +2 -2
  59. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
  60. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma_v2.rb +2 -2
  61. data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +2 -2
  62. data/lib/tinkerforge/bricklet_industrial_dual_analog_in_v2.rb +58 -3
  63. data/lib/tinkerforge/bricklet_industrial_dual_relay.rb +2 -2
  64. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
  65. data/lib/tinkerforge/bricklet_industrial_quad_relay_v2.rb +2 -2
  66. data/lib/tinkerforge/bricklet_io16.rb +2 -2
  67. data/lib/tinkerforge/bricklet_io16_v2.rb +2 -2
  68. data/lib/tinkerforge/bricklet_io4.rb +2 -2
  69. data/lib/tinkerforge/bricklet_io4_v2.rb +2 -2
  70. data/lib/tinkerforge/bricklet_isolator.rb +2 -2
  71. data/lib/tinkerforge/bricklet_joystick.rb +2 -2
  72. data/lib/tinkerforge/bricklet_joystick_v2.rb +2 -2
  73. data/lib/tinkerforge/bricklet_laser_range_finder.rb +2 -2
  74. data/lib/tinkerforge/bricklet_laser_range_finder_v2.rb +2 -2
  75. data/lib/tinkerforge/bricklet_lcd_128x64.rb +2 -2
  76. data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
  77. data/lib/tinkerforge/bricklet_lcd_20x4.rb +2 -2
  78. data/lib/tinkerforge/bricklet_led_strip.rb +2 -2
  79. data/lib/tinkerforge/bricklet_led_strip_v2.rb +2 -2
  80. data/lib/tinkerforge/bricklet_line.rb +2 -2
  81. data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
  82. data/lib/tinkerforge/bricklet_linear_poti_v2.rb +2 -2
  83. data/lib/tinkerforge/bricklet_load_cell.rb +2 -2
  84. data/lib/tinkerforge/bricklet_load_cell_v2.rb +2 -2
  85. data/lib/tinkerforge/bricklet_moisture.rb +2 -2
  86. data/lib/tinkerforge/bricklet_motion_detector.rb +2 -2
  87. data/lib/tinkerforge/bricklet_motion_detector_v2.rb +2 -2
  88. data/lib/tinkerforge/bricklet_motorized_linear_poti.rb +2 -2
  89. data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
  90. data/lib/tinkerforge/bricklet_multi_touch_v2.rb +2 -2
  91. data/lib/tinkerforge/bricklet_nfc.rb +2 -2
  92. data/lib/tinkerforge/bricklet_nfc_rfid.rb +2 -2
  93. data/lib/tinkerforge/bricklet_oled_128x64.rb +2 -2
  94. data/lib/tinkerforge/bricklet_oled_128x64_v2.rb +2 -2
  95. data/lib/tinkerforge/bricklet_oled_64x48.rb +2 -2
  96. data/lib/tinkerforge/bricklet_one_wire.rb +2 -2
  97. data/lib/tinkerforge/bricklet_outdoor_weather.rb +2 -2
  98. data/lib/tinkerforge/bricklet_particulate_matter.rb +2 -2
  99. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
  100. data/lib/tinkerforge/bricklet_piezo_speaker.rb +2 -2
  101. data/lib/tinkerforge/bricklet_piezo_speaker_v2.rb +2 -2
  102. data/lib/tinkerforge/bricklet_ptc.rb +2 -2
  103. data/lib/tinkerforge/bricklet_ptc_v2.rb +2 -2
  104. data/lib/tinkerforge/bricklet_real_time_clock.rb +2 -2
  105. data/lib/tinkerforge/bricklet_real_time_clock_v2.rb +2 -2
  106. data/lib/tinkerforge/bricklet_remote_switch.rb +2 -2
  107. data/lib/tinkerforge/bricklet_remote_switch_v2.rb +2 -2
  108. data/lib/tinkerforge/bricklet_rgb_led.rb +2 -2
  109. data/lib/tinkerforge/bricklet_rgb_led_button.rb +2 -2
  110. data/lib/tinkerforge/bricklet_rgb_led_matrix.rb +2 -2
  111. data/lib/tinkerforge/bricklet_rgb_led_v2.rb +2 -2
  112. data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
  113. data/lib/tinkerforge/bricklet_rotary_encoder_v2.rb +2 -2
  114. data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
  115. data/lib/tinkerforge/bricklet_rotary_poti_v2.rb +2 -2
  116. data/lib/tinkerforge/bricklet_rs232.rb +2 -2
  117. data/lib/tinkerforge/bricklet_rs232_v2.rb +2 -2
  118. data/lib/tinkerforge/bricklet_rs485.rb +2 -2
  119. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
  120. data/lib/tinkerforge/bricklet_segment_display_4x7_v2.rb +2 -2
  121. data/lib/tinkerforge/bricklet_solid_state_relay.rb +2 -2
  122. data/lib/tinkerforge/bricklet_solid_state_relay_v2.rb +2 -2
  123. data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
  124. data/lib/tinkerforge/bricklet_sound_pressure_level.rb +2 -2
  125. data/lib/tinkerforge/bricklet_temperature.rb +2 -2
  126. data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
  127. data/lib/tinkerforge/bricklet_temperature_ir_v2.rb +2 -2
  128. data/lib/tinkerforge/bricklet_temperature_v2.rb +2 -2
  129. data/lib/tinkerforge/bricklet_thermal_imaging.rb +2 -2
  130. data/lib/tinkerforge/bricklet_thermocouple.rb +2 -2
  131. data/lib/tinkerforge/bricklet_thermocouple_v2.rb +2 -2
  132. data/lib/tinkerforge/bricklet_tilt.rb +2 -2
  133. data/lib/tinkerforge/bricklet_uv_light.rb +2 -2
  134. data/lib/tinkerforge/bricklet_uv_light_v2.rb +2 -2
  135. data/lib/tinkerforge/bricklet_voltage.rb +2 -2
  136. data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
  137. data/lib/tinkerforge/bricklet_voltage_current_v2.rb +2 -2
  138. data/lib/tinkerforge/bricklet_xmc1400_breakout.rb +2 -2
  139. data/lib/tinkerforge/device_display_names.rb +2 -2
  140. data/lib/tinkerforge/version.rb +1 -1
  141. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1708baaffbfed4e5c76ecc11e739048f94de411c2702644e18067b18b78e40e3
4
- data.tar.gz: 9eb324198747efc2053a78820afccbc7dcf24c45e40de9abbf5868de2f1d8158
3
+ metadata.gz: 7482d5087adb1a4015f9e5eb58ddbe3d2a1ead8f21b93d4a40093df583f280f1
4
+ data.tar.gz: 763206fe43882474924b75ed4121edb268772d344af517e37e9a4334597538e6
5
5
  SHA512:
6
- metadata.gz: d2025d9cab327b75f14e9ff0c7148b24c558ede545b9599ed190317625ab6f77070261158bfe332b7fc476d408e3878aaf21d84405f7c1d4eea1754d45faf6af
7
- data.tar.gz: 548607d5c009e3364c5db4546a25a8e7eab0becb7804a7e2914a1f41bf857be46a98e1c1b7015adc137d3d613463bc6f97112d23ee9b97d4ac92c78662ec3cb1
6
+ metadata.gz: 628fc91c3916525a69f109b4b0ca1e0b66def027e34cbfaca44dc040563e5fa01fd529fe8ac53f5ac70d759fb6a02cdd2fb4d34789510bf9bb351e19a8840744
7
+ data.tar.gz: d04a96b07ced98b639796f7a3d086ca3a31096c9f9c078b2ebb1f5c52cd793e4c87670c29f02798d97072e79cad0caf1aad1621515db50318d899ef63d513153
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -435,6 +435,9 @@ module Tinkerforge
435
435
  # Returns the stack voltage. The stack voltage is the
436
436
  # voltage that is supplied via the stack, i.e. it is given by a
437
437
  # Step-Down or Step-Up Power Supply.
438
+ #
439
+ # .. note::
440
+ # It is not possible to measure voltages supplied per PoE or USB with this function.
438
441
  def get_stack_voltage
439
442
  check_validity
440
443
 
@@ -444,6 +447,9 @@ module Tinkerforge
444
447
  # Returns the stack current. The stack current is the
445
448
  # current that is drawn via the stack, i.e. it is given by a
446
449
  # Step-Down or Step-Up Power Supply.
450
+ #
451
+ # .. note::
452
+ # It is not possible to measure the current drawn via PoE or USB with this function.
447
453
  def get_stack_current
448
454
  check_validity
449
455
 
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -66,6 +66,8 @@ module Tinkerforge
66
66
  FUNCTION_GET_REFERENCE_AIR_PRESSURE = 19 # :nodoc:
67
67
  FUNCTION_SET_AVERAGING = 20 # :nodoc:
68
68
  FUNCTION_GET_AVERAGING = 21 # :nodoc:
69
+ FUNCTION_SET_I2C_MODE = 22 # :nodoc:
70
+ FUNCTION_GET_I2C_MODE = 23 # :nodoc:
69
71
  FUNCTION_GET_IDENTITY = 255 # :nodoc:
70
72
 
71
73
  THRESHOLD_OPTION_OFF = 'x' # :nodoc:
@@ -73,13 +75,15 @@ module Tinkerforge
73
75
  THRESHOLD_OPTION_INSIDE = 'i' # :nodoc:
74
76
  THRESHOLD_OPTION_SMALLER = '<' # :nodoc:
75
77
  THRESHOLD_OPTION_GREATER = '>' # :nodoc:
78
+ I2C_MODE_FAST = 0 # :nodoc:
79
+ I2C_MODE_SLOW = 1 # :nodoc:
76
80
 
77
81
  # Creates an object with the unique device ID <tt>uid</tt> and adds it to
78
82
  # the IP Connection <tt>ipcon</tt>.
79
83
  def initialize(uid, ipcon)
80
84
  super uid, ipcon, DEVICE_IDENTIFIER, DEVICE_DISPLAY_NAME
81
85
 
82
- @api_version = [2, 0, 1]
86
+ @api_version = [2, 0, 2]
83
87
 
84
88
  @response_expected[FUNCTION_GET_AIR_PRESSURE] = RESPONSE_EXPECTED_ALWAYS_TRUE
85
89
  @response_expected[FUNCTION_GET_ALTITUDE] = RESPONSE_EXPECTED_ALWAYS_TRUE
@@ -98,6 +102,8 @@ module Tinkerforge
98
102
  @response_expected[FUNCTION_GET_REFERENCE_AIR_PRESSURE] = RESPONSE_EXPECTED_ALWAYS_TRUE
99
103
  @response_expected[FUNCTION_SET_AVERAGING] = RESPONSE_EXPECTED_FALSE
100
104
  @response_expected[FUNCTION_GET_AVERAGING] = RESPONSE_EXPECTED_ALWAYS_TRUE
105
+ @response_expected[FUNCTION_SET_I2C_MODE] = RESPONSE_EXPECTED_FALSE
106
+ @response_expected[FUNCTION_GET_I2C_MODE] = RESPONSE_EXPECTED_ALWAYS_TRUE
101
107
  @response_expected[FUNCTION_GET_IDENTITY] = RESPONSE_EXPECTED_ALWAYS_TRUE
102
108
 
103
109
  @callback_formats[CALLBACK_AIR_PRESSURE] = [12, 'l']
@@ -302,6 +308,34 @@ module Tinkerforge
302
308
  send_request FUNCTION_GET_AVERAGING, [], '', 11, 'C C C'
303
309
  end
304
310
 
311
+ # Sets the I2C mode. Possible modes are:
312
+ #
313
+ # * 0: Fast (400kHz)
314
+ # * 1: Slow (100kHz)
315
+ #
316
+ # If you have problems with obvious outliers in the
317
+ # Barometer Bricklet measurements, they may be caused by EMI issues.
318
+ # In this case it may be helpful to lower the I2C speed.
319
+ #
320
+ # It is however not recommended to lower the I2C speed in applications where
321
+ # a high throughput needs to be achieved.
322
+ #
323
+ # .. versionadded:: 2.0.3$nbsp;(Plugin)
324
+ def set_i2c_mode(mode)
325
+ check_validity
326
+
327
+ send_request FUNCTION_SET_I2C_MODE, [mode], 'C', 8, ''
328
+ end
329
+
330
+ # Returns the I2C mode as set by BrickletBarometer#set_i2c_mode.
331
+ #
332
+ # .. versionadded:: 2.0.3$nbsp;(Plugin)
333
+ def get_i2c_mode
334
+ check_validity
335
+
336
+ send_request FUNCTION_GET_I2C_MODE, [], '', 9, 'C'
337
+ end
338
+
305
339
  # Returns the UID, the UID where the Bricklet is connected to,
306
340
  # the position, the hardware and firmware version as well as the
307
341
  # device identifier.
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -288,7 +288,7 @@ module Tinkerforge
288
288
  # acknowledgement, form, bit and stuffing errors during CAN bus write and read
289
289
  # operations.
290
290
  #
291
- # When the write error level extends 255 then the CAN transceiver gets disabled
291
+ # When the write error level exceeds 255 then the CAN transceiver gets disabled
292
292
  # and no frames can be transmitted or received anymore. The CAN transceiver will
293
293
  # automatically be activated again after the CAN bus is idle for a while.
294
294
  #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2020-04-07. #
3
+ # This file was automatically generated on 2020-05-19. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.25 #
5
+ # Ruby Bindings Version 2.1.26 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -154,7 +154,7 @@ module Tinkerforge
154
154
  send_request FUNCTION_GET_ALL_VALUES, [], '', 14, 'S s S'
155
155
  end
156
156
 
157
- # The CO2 concentration (among other things) depends on the ambient air pressure.
157
+ # The CO2 concentration depends (among other things) on the ambient air pressure.
158
158
  #
159
159
  # To increase the accuracy of the CO2 Bricklet 2.0 you can set the current air pressure.
160
160
  # You use the :ref:`Barometer Bricklet 2.0 <barometer_v2_bricklet>` or the