tinkerforge 2.1.23 → 2.1.24

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 +45 -4
  4. data/lib/tinkerforge/brick_hat_zero.rb +69 -3
  5. data/lib/tinkerforge/brick_imu.rb +8 -10
  6. data/lib/tinkerforge/brick_imu_v2.rb +12 -14
  7. data/lib/tinkerforge/brick_master.rb +6 -14
  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 +3 -3
  11. data/lib/tinkerforge/brick_stepper.rb +3 -3
  12. data/lib/tinkerforge/bricklet_accelerometer.rb +7 -16
  13. data/lib/tinkerforge/bricklet_accelerometer_v2.rb +18 -24
  14. data/lib/tinkerforge/bricklet_air_quality.rb +13 -23
  15. data/lib/tinkerforge/bricklet_ambient_light.rb +14 -27
  16. data/lib/tinkerforge/bricklet_ambient_light_v2.rb +4 -8
  17. data/lib/tinkerforge/bricklet_ambient_light_v3.rb +3 -5
  18. data/lib/tinkerforge/bricklet_analog_in.rb +6 -22
  19. data/lib/tinkerforge/bricklet_analog_in_v2.rb +6 -22
  20. data/lib/tinkerforge/bricklet_analog_in_v3.rb +4 -9
  21. data/lib/tinkerforge/bricklet_analog_out.rb +5 -9
  22. data/lib/tinkerforge/bricklet_analog_out_v2.rb +4 -4
  23. data/lib/tinkerforge/bricklet_analog_out_v3.rb +4 -4
  24. data/lib/tinkerforge/bricklet_barometer.rb +10 -33
  25. data/lib/tinkerforge/bricklet_barometer_v2.rb +13 -32
  26. data/lib/tinkerforge/bricklet_can.rb +3 -7
  27. data/lib/tinkerforge/bricklet_can_v2.rb +8 -40
  28. data/lib/tinkerforge/bricklet_co2.rb +5 -13
  29. data/lib/tinkerforge/bricklet_co2_v2.rb +24 -24
  30. data/lib/tinkerforge/bricklet_color.rb +9 -22
  31. data/lib/tinkerforge/bricklet_color_v2.rb +7 -16
  32. data/lib/tinkerforge/bricklet_compass.rb +6 -12
  33. data/lib/tinkerforge/bricklet_current12.rb +6 -18
  34. data/lib/tinkerforge/bricklet_current25.rb +6 -18
  35. data/lib/tinkerforge/bricklet_distance_ir.rb +6 -17
  36. data/lib/tinkerforge/bricklet_distance_ir_v2.rb +5 -16
  37. data/lib/tinkerforge/bricklet_distance_us.rb +6 -16
  38. data/lib/tinkerforge/bricklet_distance_us_v2.rb +4 -10
  39. data/lib/tinkerforge/bricklet_dmx.rb +7 -16
  40. data/lib/tinkerforge/bricklet_dual_button.rb +2 -4
  41. data/lib/tinkerforge/bricklet_dual_button_v2.rb +3 -7
  42. data/lib/tinkerforge/bricklet_dual_relay.rb +3 -5
  43. data/lib/tinkerforge/bricklet_dust_detector.rb +6 -16
  44. data/lib/tinkerforge/bricklet_e_paper_296x128.rb +30 -33
  45. data/lib/tinkerforge/bricklet_energy_monitor.rb +11 -15
  46. data/lib/tinkerforge/bricklet_gps.rb +11 -24
  47. data/lib/tinkerforge/bricklet_gps_v2.rb +10 -28
  48. data/lib/tinkerforge/bricklet_hall_effect.rb +3 -7
  49. data/lib/tinkerforge/bricklet_hall_effect_v2.rb +8 -19
  50. data/lib/tinkerforge/bricklet_humidity.rb +6 -19
  51. data/lib/tinkerforge/bricklet_humidity_v2.rb +6 -20
  52. data/lib/tinkerforge/bricklet_industrial_analog_out.rb +6 -6
  53. data/lib/tinkerforge/bricklet_industrial_analog_out_v2.rb +6 -13
  54. data/lib/tinkerforge/bricklet_industrial_counter.rb +4 -22
  55. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +9 -9
  56. data/lib/tinkerforge/bricklet_industrial_digital_in_4_v2.rb +5 -13
  57. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +3 -3
  58. data/lib/tinkerforge/bricklet_industrial_digital_out_4_v2.rb +5 -8
  59. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +6 -15
  60. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma_v2.rb +4 -16
  61. data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +5 -13
  62. data/lib/tinkerforge/bricklet_industrial_dual_analog_in_v2.rb +4 -11
  63. data/lib/tinkerforge/bricklet_industrial_dual_relay.rb +5 -7
  64. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +3 -3
  65. data/lib/tinkerforge/bricklet_industrial_quad_relay_v2.rb +3 -5
  66. data/lib/tinkerforge/bricklet_io16.rb +5 -13
  67. data/lib/tinkerforge/bricklet_io16_v2.rb +6 -16
  68. data/lib/tinkerforge/bricklet_io4.rb +4 -10
  69. data/lib/tinkerforge/bricklet_io4_v2.rb +16 -23
  70. data/lib/tinkerforge/bricklet_isolator.rb +44 -11
  71. data/lib/tinkerforge/bricklet_joystick.rb +7 -19
  72. data/lib/tinkerforge/bricklet_joystick_v2.rb +6 -11
  73. data/lib/tinkerforge/bricklet_laser_range_finder.rb +8 -29
  74. data/lib/tinkerforge/bricklet_laser_range_finder_v2.rb +6 -17
  75. data/lib/tinkerforge/bricklet_lcd_128x64.rb +30 -63
  76. data/lib/tinkerforge/bricklet_lcd_16x2.rb +7 -9
  77. data/lib/tinkerforge/bricklet_lcd_20x4.rb +4 -8
  78. data/lib/tinkerforge/bricklet_led_strip.rb +12 -27
  79. data/lib/tinkerforge/bricklet_led_strip_v2.rb +17 -4
  80. data/lib/tinkerforge/bricklet_line.rb +4 -10
  81. data/lib/tinkerforge/bricklet_linear_poti.rb +5 -16
  82. data/lib/tinkerforge/bricklet_linear_poti_v2.rb +3 -5
  83. data/lib/tinkerforge/bricklet_load_cell.rb +6 -19
  84. data/lib/tinkerforge/bricklet_load_cell_v2.rb +4 -13
  85. data/lib/tinkerforge/bricklet_moisture.rb +6 -16
  86. data/lib/tinkerforge/bricklet_motion_detector.rb +2 -2
  87. data/lib/tinkerforge/bricklet_motion_detector_v2.rb +3 -7
  88. data/lib/tinkerforge/bricklet_motorized_linear_poti.rb +3 -7
  89. data/lib/tinkerforge/bricklet_multi_touch.rb +2 -6
  90. data/lib/tinkerforge/bricklet_multi_touch_v2.rb +3 -13
  91. data/lib/tinkerforge/bricklet_nfc.rb +6 -20
  92. data/lib/tinkerforge/bricklet_nfc_rfid.rb +2 -2
  93. data/lib/tinkerforge/bricklet_oled_128x64.rb +4 -8
  94. data/lib/tinkerforge/bricklet_oled_128x64_v2.rb +12 -18
  95. data/lib/tinkerforge/bricklet_oled_64x48.rb +4 -8
  96. data/lib/tinkerforge/bricklet_one_wire.rb +2 -2
  97. data/lib/tinkerforge/bricklet_outdoor_weather.rb +16 -16
  98. data/lib/tinkerforge/bricklet_particulate_matter.rb +13 -9
  99. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +3 -6
  100. data/lib/tinkerforge/bricklet_piezo_speaker.rb +3 -11
  101. data/lib/tinkerforge/bricklet_piezo_speaker_v2.rb +8 -18
  102. data/lib/tinkerforge/bricklet_ptc.rb +5 -11
  103. data/lib/tinkerforge/bricklet_ptc_v2.rb +4 -8
  104. data/lib/tinkerforge/bricklet_real_time_clock.rb +3 -5
  105. data/lib/tinkerforge/bricklet_real_time_clock_v2.rb +3 -5
  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 +4 -8
  113. data/lib/tinkerforge/bricklet_rotary_encoder_v2.rb +3 -5
  114. data/lib/tinkerforge/bricklet_rotary_poti.rb +5 -11
  115. data/lib/tinkerforge/bricklet_rotary_poti_v2.rb +3 -5
  116. data/lib/tinkerforge/bricklet_rs232.rb +2 -2
  117. data/lib/tinkerforge/bricklet_rs232_v2.rb +6 -5
  118. data/lib/tinkerforge/bricklet_rs485.rb +30 -71
  119. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
  120. data/lib/tinkerforge/bricklet_segment_display_4x7_v2.rb +3 -3
  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 +4 -8
  124. data/lib/tinkerforge/bricklet_sound_pressure_level.rb +8 -12
  125. data/lib/tinkerforge/bricklet_temperature.rb +6 -14
  126. data/lib/tinkerforge/bricklet_temperature_ir.rb +7 -26
  127. data/lib/tinkerforge/bricklet_temperature_ir_v2.rb +6 -19
  128. data/lib/tinkerforge/bricklet_temperature_v2.rb +4 -8
  129. data/lib/tinkerforge/bricklet_thermal_imaging.rb +16 -26
  130. data/lib/tinkerforge/bricklet_thermocouple.rb +4 -8
  131. data/lib/tinkerforge/bricklet_thermocouple_v2.rb +3 -5
  132. data/lib/tinkerforge/bricklet_tilt.rb +2 -2
  133. data/lib/tinkerforge/bricklet_uv_light.rb +4 -8
  134. data/lib/tinkerforge/bricklet_uv_light_v2.rb +5 -11
  135. data/lib/tinkerforge/bricklet_voltage.rb +5 -11
  136. data/lib/tinkerforge/bricklet_voltage_current.rb +6 -14
  137. data/lib/tinkerforge/bricklet_voltage_current_v2.rb +5 -11
  138. data/lib/tinkerforge/bricklet_xmc1400_breakout.rb +4 -8
  139. data/lib/tinkerforge/ip_connection.rb +3 -0
  140. data/lib/tinkerforge/version.rb +1 -1
  141. metadata +2 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 #
@@ -15,26 +15,10 @@ module Tinkerforge
15
15
  DEVICE_IDENTIFIER = 278 # :nodoc:
16
16
  DEVICE_DISPLAY_NAME = 'Thermal Imaging Bricklet' # :nodoc:
17
17
 
18
- # This callback is triggered with every new high contrast image if the transfer image
19
- # config is configured for high contrast callback (see BrickletThermalImaging#set_image_transfer_config).
20
- #
21
- # The data is organized as a 8-bit value 80x60 pixel matrix linearized in
22
- # a one-dimensional array. The data is arranged line by line from top left to
23
- # bottom right.
24
- #
25
- # Each 8-bit value represents one gray-scale image pixel that can directly be
26
- # shown to a user on a display.
18
+ # See CALLBACK_HIGH_CONTRAST_IMAGE
27
19
  CALLBACK_HIGH_CONTRAST_IMAGE_LOW_LEVEL = 12
28
20
 
29
- # This callback is triggered with every new temperature image if the transfer image
30
- # config is configured for temperature callback (see BrickletThermalImaging#set_image_transfer_config).
31
- #
32
- # The data is organized as a 16-bit value 80x60 pixel matrix linearized in
33
- # a one-dimensional array. The data is arranged line by line from top left to
34
- # bottom right.
35
- #
36
- # Each 16-bit value represents one temperature measurement in either
37
- # Kelvin/10 or Kelvin/100 (depending on the resolution set with BrickletThermalImaging#set_resolution).
21
+ # See CALLBACK_TEMPERATURE_IMAGE
38
22
  CALLBACK_TEMPERATURE_IMAGE_LOW_LEVEL = 13
39
23
 
40
24
  # This callback is triggered with every new high contrast image if the transfer image
@@ -46,6 +30,9 @@ module Tinkerforge
46
30
  #
47
31
  # Each 8-bit value represents one gray-scale image pixel that can directly be
48
32
  # shown to a user on a display.
33
+ #
34
+ # .. note::
35
+ # If reconstructing the value fails, the callback is triggered with nil for image.
49
36
  CALLBACK_HIGH_CONTRAST_IMAGE = -12
50
37
 
51
38
  # This callback is triggered with every new temperature image if the transfer image
@@ -57,6 +44,9 @@ module Tinkerforge
57
44
  #
58
45
  # Each 16-bit value represents one temperature measurement in either
59
46
  # Kelvin/10 or Kelvin/100 (depending on the resolution set with BrickletThermalImaging#set_resolution).
47
+ #
48
+ # .. note::
49
+ # If reconstructing the value fails, the callback is triggered with nil for image.
60
50
  CALLBACK_TEMPERATURE_IMAGE = -13
61
51
 
62
52
  FUNCTION_GET_HIGH_CONTRAST_IMAGE_LOW_LEVEL = 1 # :nodoc:
@@ -276,18 +266,18 @@ module Tinkerforge
276
266
  # lower the value of N the higher the influence of the current video frame whereas
277
267
  # the higher the value of N the more influence the previous damped transfer function has.
278
268
  #
279
- # Clip Limit Index 0 (AGC HEQ Clip Limit Low): This parameter defines an artificial population that is added to
269
+ # Clip Limit Index 0 (AGC HEQ Clip Limit High): This parameter defines the maximum number of pixels allowed
270
+ # to accumulate in any given histogram bin. Any additional pixels in a given bin are clipped.
271
+ # The effect of this parameter is to limit the influence of highly-populated bins on the
272
+ # resulting HEQ transformation function.
273
+ #
274
+ # Clip Limit Index 1 (AGC HEQ Clip Limit Low): This parameter defines an artificial population that is added to
280
275
  # every non-empty histogram bin. In other words, if the Clip Limit Low is set to L, a bin
281
276
  # with an actual population of X will have an effective population of L + X. Any empty bin
282
277
  # that is nearby a populated bin will be given an artificial population of L. The effect of
283
278
  # higher values is to provide a more linear transfer function; lower values provide a more
284
279
  # non-linear (equalized) transfer function.
285
280
  #
286
- # Clip Limit Index 1 (AGC HEQ Clip Limit High): This parameter defines the maximum number of pixels allowed
287
- # to accumulate in any given histogram bin. Any additional pixels in a given bin are clipped.
288
- # The effect of this parameter is to limit the influence of highly-populated bins on the
289
- # resulting HEQ transformation function.
290
- #
291
281
  # Empty Counts: This parameter specifies the maximum number of pixels in a bin that will be
292
282
  # interpreted as an empty bin. Histogram bins with this number of pixels or less will be
293
283
  # processed as an empty bin.
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 #
@@ -105,13 +105,11 @@ module Tinkerforge
105
105
  send_request FUNCTION_GET_TEMPERATURE, [], '', 4, 'l'
106
106
  end
107
107
 
108
- # Sets the period in ms with which the CALLBACK_TEMPERATURE callback is triggered
108
+ # Sets the period with which the CALLBACK_TEMPERATURE callback is triggered
109
109
  # periodically. A value of 0 turns the callback off.
110
110
  #
111
111
  # The CALLBACK_TEMPERATURE callback is only triggered if the temperature has changed
112
112
  # since the last triggering.
113
- #
114
- # The default value is 0.
115
113
  def set_temperature_callback_period(period)
116
114
  send_request FUNCTION_SET_TEMPERATURE_CALLBACK_PERIOD, [period], 'L', 0, ''
117
115
  end
@@ -143,7 +141,7 @@ module Tinkerforge
143
141
  send_request FUNCTION_GET_TEMPERATURE_CALLBACK_THRESHOLD, [], '', 9, 'k l l'
144
142
  end
145
143
 
146
- # Sets the period in ms with which the threshold callback
144
+ # Sets the period with which the threshold callback
147
145
  #
148
146
  # * CALLBACK_TEMPERATURE_REACHED
149
147
  #
@@ -152,8 +150,6 @@ module Tinkerforge
152
150
  # * BrickletThermocouple#set_temperature_callback_threshold
153
151
  #
154
152
  # keeps being reached.
155
- #
156
- # The default value is 100.
157
153
  def set_debounce_period(debounce)
158
154
  send_request FUNCTION_SET_DEBOUNCE_PERIOD, [debounce], 'L', 0, ''
159
155
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 #
@@ -128,7 +128,7 @@ module Tinkerforge
128
128
  send_request FUNCTION_GET_TEMPERATURE, [], '', 4, 'l'
129
129
  end
130
130
 
131
- # The period in ms is the period with which the CALLBACK_TEMPERATURE callback is triggered
131
+ # The period is the period with which the CALLBACK_TEMPERATURE callback is triggered
132
132
  # periodically. A value of 0 turns the callback off.
133
133
  #
134
134
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -153,8 +153,6 @@ module Tinkerforge
153
153
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
154
154
  #
155
155
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
156
- #
157
- # The default value is (0, false, 'x', 0, 0).
158
156
  def set_temperature_callback_configuration(period, value_has_to_change, option, min, max)
159
157
  send_request FUNCTION_SET_TEMPERATURE_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k l l', 0, ''
160
158
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 #
@@ -81,13 +81,11 @@ module Tinkerforge
81
81
  send_request FUNCTION_GET_UV_LIGHT, [], '', 4, 'L'
82
82
  end
83
83
 
84
- # Sets the period in ms with which the CALLBACK_UV_LIGHT callback is triggered
84
+ # Sets the period with which the CALLBACK_UV_LIGHT callback is triggered
85
85
  # periodically. A value of 0 turns the callback off.
86
86
  #
87
87
  # The CALLBACK_UV_LIGHT callback is only triggered if the intensity has changed since
88
88
  # the last triggering.
89
- #
90
- # The default value is 0.
91
89
  def set_uv_light_callback_period(period)
92
90
  send_request FUNCTION_SET_UV_LIGHT_CALLBACK_PERIOD, [period], 'L', 0, ''
93
91
  end
@@ -119,7 +117,7 @@ module Tinkerforge
119
117
  send_request FUNCTION_GET_UV_LIGHT_CALLBACK_THRESHOLD, [], '', 9, 'k L L'
120
118
  end
121
119
 
122
- # Sets the period in ms with which the threshold callbacks
120
+ # Sets the period with which the threshold callbacks
123
121
  #
124
122
  # * CALLBACK_UV_LIGHT_REACHED,
125
123
  #
@@ -128,8 +126,6 @@ module Tinkerforge
128
126
  # * BrickletUVLight#set_uv_light_callback_threshold,
129
127
  #
130
128
  # keep being reached.
131
- #
132
- # The default value is 100.
133
129
  def set_debounce_period(debounce)
134
130
  send_request FUNCTION_SET_DEBOUNCE_PERIOD, [debounce], 'L', 0, ''
135
131
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 #
@@ -140,7 +140,7 @@ module Tinkerforge
140
140
  send_request FUNCTION_GET_UVA, [], '', 4, 'l'
141
141
  end
142
142
 
143
- # The period in ms is the period with which the CALLBACK_UVA callback is triggered
143
+ # The period is the period with which the CALLBACK_UVA callback is triggered
144
144
  # periodically. A value of 0 turns the callback off.
145
145
  #
146
146
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -165,8 +165,6 @@ module Tinkerforge
165
165
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
166
166
  #
167
167
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
168
- #
169
- # The default value is (0, false, 'x', 0, 0).
170
168
  def set_uva_callback_configuration(period, value_has_to_change, option, min, max)
171
169
  send_request FUNCTION_SET_UVA_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k l l', 0, ''
172
170
  end
@@ -196,7 +194,7 @@ module Tinkerforge
196
194
  send_request FUNCTION_GET_UVB, [], '', 4, 'l'
197
195
  end
198
196
 
199
- # The period in ms is the period with which the CALLBACK_UVB callback is triggered
197
+ # The period is the period with which the CALLBACK_UVB callback is triggered
200
198
  # periodically. A value of 0 turns the callback off.
201
199
  #
202
200
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -221,8 +219,6 @@ module Tinkerforge
221
219
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
222
220
  #
223
221
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
224
- #
225
- # The default value is (0, false, 'x', 0, 0).
226
222
  def set_uvb_callback_configuration(period, value_has_to_change, option, min, max)
227
223
  send_request FUNCTION_SET_UVB_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k l l', 0, ''
228
224
  end
@@ -248,7 +244,7 @@ module Tinkerforge
248
244
  send_request FUNCTION_GET_UVI, [], '', 4, 'l'
249
245
  end
250
246
 
251
- # The period in ms is the period with which the CALLBACK_UVI callback is triggered
247
+ # The period is the period with which the CALLBACK_UVI callback is triggered
252
248
  # periodically. A value of 0 turns the callback off.
253
249
  #
254
250
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -273,8 +269,6 @@ module Tinkerforge
273
269
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
274
270
  #
275
271
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
276
- #
277
- # The default value is (0, false, 'x', 0, 0).
278
272
  def set_uvi_callback_configuration(period, value_has_to_change, option, min, max)
279
273
  send_request FUNCTION_SET_UVI_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k l l', 0, ''
280
274
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 #
@@ -121,13 +121,11 @@ module Tinkerforge
121
121
  send_request FUNCTION_GET_ANALOG_VALUE, [], '', 2, 'S'
122
122
  end
123
123
 
124
- # Sets the period in ms with which the CALLBACK_VOLTAGE callback is triggered
124
+ # Sets the period with which the CALLBACK_VOLTAGE callback is triggered
125
125
  # periodically. A value of 0 turns the callback off.
126
126
  #
127
127
  # The CALLBACK_VOLTAGE callback is only triggered if the voltage has changed since
128
128
  # the last triggering.
129
- #
130
- # The default value is 0.
131
129
  def set_voltage_callback_period(period)
132
130
  send_request FUNCTION_SET_VOLTAGE_CALLBACK_PERIOD, [period], 'L', 0, ''
133
131
  end
@@ -137,13 +135,11 @@ module Tinkerforge
137
135
  send_request FUNCTION_GET_VOLTAGE_CALLBACK_PERIOD, [], '', 4, 'L'
138
136
  end
139
137
 
140
- # Sets the period in ms with which the CALLBACK_ANALOG_VALUE callback is triggered
138
+ # Sets the period with which the CALLBACK_ANALOG_VALUE callback is triggered
141
139
  # periodically. A value of 0 turns the callback off.
142
140
  #
143
141
  # The CALLBACK_ANALOG_VALUE callback is only triggered if the analog value has
144
142
  # changed since the last triggering.
145
- #
146
- # The default value is 0.
147
143
  def set_analog_value_callback_period(period)
148
144
  send_request FUNCTION_SET_ANALOG_VALUE_CALLBACK_PERIOD, [period], 'L', 0, ''
149
145
  end
@@ -197,7 +193,7 @@ module Tinkerforge
197
193
  send_request FUNCTION_GET_ANALOG_VALUE_CALLBACK_THRESHOLD, [], '', 5, 'k S S'
198
194
  end
199
195
 
200
- # Sets the period in ms with which the threshold callbacks
196
+ # Sets the period with which the threshold callbacks
201
197
  #
202
198
  # * CALLBACK_VOLTAGE_REACHED,
203
199
  # * CALLBACK_ANALOG_VALUE_REACHED
@@ -208,8 +204,6 @@ module Tinkerforge
208
204
  # * BrickletVoltage#set_analog_value_callback_threshold
209
205
  #
210
206
  # keep being reached.
211
- #
212
- # The default value is 100.
213
207
  def set_debounce_period(debounce)
214
208
  send_request FUNCTION_SET_DEBOUNCE_PERIOD, [debounce], 'L', 0, ''
215
209
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 #
@@ -226,13 +226,11 @@ module Tinkerforge
226
226
  send_request FUNCTION_GET_CALIBRATION, [], '', 4, 'S S'
227
227
  end
228
228
 
229
- # Sets the period in ms with which the CALLBACK_CURRENT callback is triggered
229
+ # Sets the period with which the CALLBACK_CURRENT callback is triggered
230
230
  # periodically. A value of 0 turns the callback off.
231
231
  #
232
232
  # The CALLBACK_CURRENT callback is only triggered if the current has changed since
233
233
  # the last triggering.
234
- #
235
- # The default value is 0.
236
234
  def set_current_callback_period(period)
237
235
  send_request FUNCTION_SET_CURRENT_CALLBACK_PERIOD, [period], 'L', 0, ''
238
236
  end
@@ -242,13 +240,11 @@ module Tinkerforge
242
240
  send_request FUNCTION_GET_CURRENT_CALLBACK_PERIOD, [], '', 4, 'L'
243
241
  end
244
242
 
245
- # Sets the period in ms with which the CALLBACK_VOLTAGE callback is triggered
243
+ # Sets the period with which the CALLBACK_VOLTAGE callback is triggered
246
244
  # periodically. A value of 0 turns the callback off.
247
245
  #
248
246
  # The CALLBACK_VOLTAGE callback is only triggered if the voltage has changed since
249
247
  # the last triggering.
250
- #
251
- # The default value is 0.
252
248
  def set_voltage_callback_period(period)
253
249
  send_request FUNCTION_SET_VOLTAGE_CALLBACK_PERIOD, [period], 'L', 0, ''
254
250
  end
@@ -258,13 +254,11 @@ module Tinkerforge
258
254
  send_request FUNCTION_GET_VOLTAGE_CALLBACK_PERIOD, [], '', 4, 'L'
259
255
  end
260
256
 
261
- # Sets the period in ms with which the CALLBACK_POWER callback is triggered
257
+ # Sets the period with which the CALLBACK_POWER callback is triggered
262
258
  # periodically. A value of 0 turns the callback off.
263
259
  #
264
260
  # The CALLBACK_POWER callback is only triggered if the power has changed since the
265
261
  # last triggering.
266
- #
267
- # The default value is 0.
268
262
  def set_power_callback_period(period)
269
263
  send_request FUNCTION_SET_POWER_CALLBACK_PERIOD, [period], 'L', 0, ''
270
264
  end
@@ -340,7 +334,7 @@ module Tinkerforge
340
334
  send_request FUNCTION_GET_POWER_CALLBACK_THRESHOLD, [], '', 9, 'k l l'
341
335
  end
342
336
 
343
- # Sets the period in ms with which the threshold callbacks
337
+ # Sets the period with which the threshold callbacks
344
338
  #
345
339
  # * CALLBACK_CURRENT_REACHED,
346
340
  # * CALLBACK_VOLTAGE_REACHED,
@@ -353,8 +347,6 @@ module Tinkerforge
353
347
  # * BrickletVoltageCurrent#set_power_callback_threshold
354
348
  #
355
349
  # keep being reached.
356
- #
357
- # The default value is 100.
358
350
  def set_debounce_period(debounce)
359
351
  send_request FUNCTION_SET_DEBOUNCE_PERIOD, [debounce], 'L', 0, ''
360
352
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-08-23. #
3
+ # This file was automatically generated on 2019-11-25. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.23 #
5
+ # Ruby Bindings Version 2.1.24 #
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 #
@@ -146,7 +146,7 @@ module Tinkerforge
146
146
  send_request FUNCTION_GET_CURRENT, [], '', 4, 'l'
147
147
  end
148
148
 
149
- # The period in ms is the period with which the CALLBACK_CURRENT callback is triggered
149
+ # The period is the period with which the CALLBACK_CURRENT callback is triggered
150
150
  # periodically. A value of 0 turns the callback off.
151
151
  #
152
152
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -171,8 +171,6 @@ module Tinkerforge
171
171
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
172
172
  #
173
173
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
174
- #
175
- # The default value is (0, false, 'x', 0, 0).
176
174
  def set_current_callback_configuration(period, value_has_to_change, option, min, max)
177
175
  send_request FUNCTION_SET_CURRENT_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k l l', 0, ''
178
176
  end
@@ -193,7 +191,7 @@ module Tinkerforge
193
191
  send_request FUNCTION_GET_VOLTAGE, [], '', 4, 'l'
194
192
  end
195
193
 
196
- # The period in ms is the period with which the CALLBACK_VOLTAGE callback is triggered
194
+ # The period is the period with which the CALLBACK_VOLTAGE callback is triggered
197
195
  # periodically. A value of 0 turns the callback off.
198
196
  #
199
197
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -218,8 +216,6 @@ module Tinkerforge
218
216
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
219
217
  #
220
218
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
221
- #
222
- # The default value is (0, false, 'x', 0, 0).
223
219
  def set_voltage_callback_configuration(period, value_has_to_change, option, min, max)
224
220
  send_request FUNCTION_SET_VOLTAGE_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k l l', 0, ''
225
221
  end
@@ -240,7 +236,7 @@ module Tinkerforge
240
236
  send_request FUNCTION_GET_POWER, [], '', 4, 'l'
241
237
  end
242
238
 
243
- # The period in ms is the period with which the CALLBACK_POWER callback is triggered
239
+ # The period is the period with which the CALLBACK_POWER callback is triggered
244
240
  # periodically. A value of 0 turns the callback off.
245
241
  #
246
242
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -265,8 +261,6 @@ module Tinkerforge
265
261
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
266
262
  #
267
263
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
268
- #
269
- # The default value is (0, false, 'x', 0, 0).
270
264
  def set_power_callback_configuration(period, value_has_to_change, option, min, max)
271
265
  send_request FUNCTION_SET_POWER_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k l l', 0, ''
272
266
  end