tinkerforge 2.1.23 → 2.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 #
@@ -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 #
@@ -109,7 +109,7 @@ module Tinkerforge
109
109
  send_request FUNCTION_GET_SEGMENTS, [], '', 35, '?8 ?8 ?8 ?8 ?2 ?'
110
110
  end
111
111
 
112
- # The brightness can be set between 0 (dark) and 7 (bright).
112
+ # The brightness can be set between 0 (dark) and 7 (bright).
113
113
  #
114
114
  # The default value is 7.
115
115
  def set_brightness(brightness)
@@ -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 #
@@ -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_INTENSITY, [], '', 2, 'S'
82
82
  end
83
83
 
84
- # Sets the period in ms with which the CALLBACK_INTENSITY callback is triggered
84
+ # Sets the period with which the CALLBACK_INTENSITY callback is triggered
85
85
  # periodically. A value of 0 turns the callback off.
86
86
  #
87
87
  # The CALLBACK_INTENSITY callback is only triggered if the intensity has changed
88
88
  # since the last triggering.
89
- #
90
- # The default value is 0.
91
89
  def set_intensity_callback_period(period)
92
90
  send_request FUNCTION_SET_INTENSITY_CALLBACK_PERIOD, [period], 'L', 0, ''
93
91
  end
@@ -119,7 +117,7 @@ module Tinkerforge
119
117
  send_request FUNCTION_GET_INTENSITY_CALLBACK_THRESHOLD, [], '', 5, 'k S S'
120
118
  end
121
119
 
122
- # Sets the period in ms with which the threshold callback
120
+ # Sets the period with which the threshold callback
123
121
  #
124
122
  # * CALLBACK_INTENSITY_REACHED
125
123
  #
@@ -128,8 +126,6 @@ module Tinkerforge
128
126
  # * BrickletSoundIntensity#set_intensity_callback_threshold
129
127
  #
130
128
  # keeps 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 #
@@ -21,16 +21,16 @@ module Tinkerforge
21
21
  # The parameter is the same as BrickletSoundPressureLevel#get_decibel.
22
22
  CALLBACK_DECIBEL = 4
23
23
 
24
- # This callback is triggered periodically according to the configuration set by
25
- # BrickletSoundPressureLevel#set_spectrum_callback_configuration.
26
- #
27
- # The parameter is the same as BrickletSoundPressureLevel#get_spectrum.
24
+ # See CALLBACK_SPECTRUM
28
25
  CALLBACK_SPECTRUM_LOW_LEVEL = 8
29
26
 
30
27
  # This callback is triggered periodically according to the configuration set by
31
28
  # BrickletSoundPressureLevel#set_spectrum_callback_configuration.
32
29
  #
33
30
  # The parameter is the same as BrickletSoundPressureLevel#get_spectrum.
31
+ #
32
+ # .. note::
33
+ # If reconstructing the value fails, the callback is triggered with nil for spectrum.
34
34
  CALLBACK_SPECTRUM = -8
35
35
 
36
36
  FUNCTION_GET_DECIBEL = 1 # :nodoc:
@@ -135,7 +135,7 @@ module Tinkerforge
135
135
  send_request FUNCTION_GET_DECIBEL, [], '', 2, 'S'
136
136
  end
137
137
 
138
- # The period in ms is the period with which the CALLBACK_DECIBEL callback is triggered
138
+ # The period is the period with which the CALLBACK_DECIBEL callback is triggered
139
139
  # periodically. A value of 0 turns the callback off.
140
140
  #
141
141
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -160,8 +160,6 @@ module Tinkerforge
160
160
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
161
161
  #
162
162
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
163
- #
164
- # The default value is (0, false, 'x', 0, 0).
165
163
  def set_decibel_callback_configuration(period, value_has_to_change, option, min, max)
166
164
  send_request FUNCTION_SET_DECIBEL_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k S S', 0, ''
167
165
  end
@@ -193,13 +191,11 @@ module Tinkerforge
193
191
  send_request FUNCTION_GET_SPECTRUM_LOW_LEVEL, [], '', 64, 'S S S30'
194
192
  end
195
193
 
196
- # The period in ms is the period with which the CALLBACK_SPECTRUM callback is
194
+ # The period is the period with which the CALLBACK_SPECTRUM callback is
197
195
  # triggered periodically. A value of 0 turns the callback off.
198
196
  #
199
197
  # Every new measured spectrum will be send at most once. Set the period to 1 to
200
198
  # make sure that you get every spectrum.
201
- #
202
- # The default value is 0.
203
199
  def set_spectrum_callback_configuration(period)
204
200
  send_request FUNCTION_SET_SPECTRUM_CALLBACK_CONFIGURATION, [period], 'L', 0, ''
205
201
  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 #
@@ -73,9 +73,7 @@ module Tinkerforge
73
73
 
74
74
  end
75
75
 
76
- # Returns the temperature of the sensor. The value
77
- # has a range of -2500 to 8500 and is given in °C/100,
78
- # e.g. a value of 4223 means that a temperature of 42.23 °C is measured.
76
+ # Returns the temperature of the sensor.
79
77
  #
80
78
  # If you want to get the temperature periodically, it is recommended
81
79
  # to use the CALLBACK_TEMPERATURE callback and set the period with
@@ -84,13 +82,11 @@ module Tinkerforge
84
82
  send_request FUNCTION_GET_TEMPERATURE, [], '', 2, 's'
85
83
  end
86
84
 
87
- # Sets the period in ms with which the CALLBACK_TEMPERATURE callback is triggered
85
+ # Sets the period with which the CALLBACK_TEMPERATURE callback is triggered
88
86
  # periodically. A value of 0 turns the callback off.
89
87
  #
90
88
  # The CALLBACK_TEMPERATURE callback is only triggered if the temperature has changed
91
89
  # since the last triggering.
92
- #
93
- # The default value is 0.
94
90
  def set_temperature_callback_period(period)
95
91
  send_request FUNCTION_SET_TEMPERATURE_CALLBACK_PERIOD, [period], 'L', 0, ''
96
92
  end
@@ -111,8 +107,6 @@ module Tinkerforge
111
107
  # "'i'", "Callback is triggered when the temperature is *inside* the min and max values"
112
108
  # "'<'", "Callback is triggered when the temperature is smaller than the min value (max is ignored)"
113
109
  # "'>'", "Callback is triggered when the temperature is greater than the min value (max is ignored)"
114
- #
115
- # The default value is ('x', 0, 0).
116
110
  def set_temperature_callback_threshold(option, min, max)
117
111
  send_request FUNCTION_SET_TEMPERATURE_CALLBACK_THRESHOLD, [option, min, max], 'k s s', 0, ''
118
112
  end
@@ -122,7 +116,7 @@ module Tinkerforge
122
116
  send_request FUNCTION_GET_TEMPERATURE_CALLBACK_THRESHOLD, [], '', 5, 'k s s'
123
117
  end
124
118
 
125
- # Sets the period in ms with which the threshold callback
119
+ # Sets the period with which the threshold callback
126
120
  #
127
121
  # * CALLBACK_TEMPERATURE_REACHED
128
122
  #
@@ -131,8 +125,6 @@ module Tinkerforge
131
125
  # * BrickletTemperature#set_temperature_callback_threshold
132
126
  #
133
127
  # keeps being reached.
134
- #
135
- # The default value is 100.
136
128
  def set_debounce_period(debounce)
137
129
  send_request FUNCTION_SET_DEBOUNCE_PERIOD, [debounce], 'L', 0, ''
138
130
  end
@@ -144,7 +136,7 @@ module Tinkerforge
144
136
 
145
137
  # Sets the I2C mode. Possible modes are:
146
138
  #
147
- # * 0: Fast (400kHz, default)
139
+ # * 0: Fast (400kHz)
148
140
  # * 1: Slow (100kHz)
149
141
  #
150
142
  # If you have problems with obvious outliers in the
@@ -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 #
@@ -99,10 +99,7 @@ module Tinkerforge
99
99
 
100
100
  end
101
101
 
102
- # Returns the ambient temperature of the sensor. The value
103
- # has a range of -400 to 1250 and is given in °C/10,
104
- # e.g. a value of 423 means that an ambient temperature of 42.3 °C is
105
- # measured.
102
+ # Returns the ambient temperature of the sensor.
106
103
  #
107
104
  # If you want to get the ambient temperature periodically, it is recommended
108
105
  # to use the CALLBACK_AMBIENT_TEMPERATURE callback and set the period with
@@ -112,10 +109,7 @@ module Tinkerforge
112
109
  end
113
110
 
114
111
  # Returns the object temperature of the sensor, i.e. the temperature
115
- # of the surface of the object the sensor is aimed at. The value
116
- # has a range of -700 to 3800 and is given in °C/10,
117
- # e.g. a value of 3001 means that a temperature of 300.1 °C is measured
118
- # on the surface of the object.
112
+ # of the surface of the object the sensor is aimed at.
119
113
  #
120
114
  # The temperature of different materials is dependent on their `emissivity
121
115
  # <https://en.wikipedia.org/wiki/Emissivity>`__. The emissivity of the material
@@ -144,9 +138,6 @@ module Tinkerforge
144
138
  # If you need a precise measurement for the object temperature, it is
145
139
  # absolutely crucial that you also provide a precise emissivity.
146
140
  #
147
- # The default emissivity is 1.0 (value of 65535) and the minimum emissivity the
148
- # sensor can handle is 0.1 (value of 6553).
149
- #
150
141
  # The emissivity is stored in non-volatile memory and will still be used after a restart or power cycle of the Bricklet.
151
142
  def set_emissivity(emissivity)
152
143
  send_request FUNCTION_SET_EMISSIVITY, [emissivity], 'S', 0, ''
@@ -157,13 +148,11 @@ module Tinkerforge
157
148
  send_request FUNCTION_GET_EMISSIVITY, [], '', 2, 'S'
158
149
  end
159
150
 
160
- # Sets the period in ms with which the CALLBACK_AMBIENT_TEMPERATURE callback is
151
+ # Sets the period with which the CALLBACK_AMBIENT_TEMPERATURE callback is
161
152
  # triggered periodically. A value of 0 turns the callback off.
162
153
  #
163
154
  # The CALLBACK_AMBIENT_TEMPERATURE callback is only triggered if the temperature has
164
155
  # changed since the last triggering.
165
- #
166
- # The default value is 0.
167
156
  def set_ambient_temperature_callback_period(period)
168
157
  send_request FUNCTION_SET_AMBIENT_TEMPERATURE_CALLBACK_PERIOD, [period], 'L', 0, ''
169
158
  end
@@ -173,13 +162,11 @@ module Tinkerforge
173
162
  send_request FUNCTION_GET_AMBIENT_TEMPERATURE_CALLBACK_PERIOD, [], '', 4, 'L'
174
163
  end
175
164
 
176
- # Sets the period in ms with which the CALLBACK_OBJECT_TEMPERATURE callback is
165
+ # Sets the period with which the CALLBACK_OBJECT_TEMPERATURE callback is
177
166
  # triggered periodically. A value of 0 turns the callback off.
178
167
  #
179
168
  # The CALLBACK_OBJECT_TEMPERATURE callback is only triggered if the temperature
180
169
  # has changed since the last triggering.
181
- #
182
- # The default value is 0.
183
170
  def set_object_temperature_callback_period(period)
184
171
  send_request FUNCTION_SET_OBJECT_TEMPERATURE_CALLBACK_PERIOD, [period], 'L', 0, ''
185
172
  end
@@ -200,8 +187,6 @@ module Tinkerforge
200
187
  # "'i'", "Callback is triggered when the ambient temperature is *inside* the min and max values"
201
188
  # "'<'", "Callback is triggered when the ambient temperature is smaller than the min value (max is ignored)"
202
189
  # "'>'", "Callback is triggered when the ambient temperature is greater than the min value (max is ignored)"
203
- #
204
- # The default value is ('x', 0, 0).
205
190
  def set_ambient_temperature_callback_threshold(option, min, max)
206
191
  send_request FUNCTION_SET_AMBIENT_TEMPERATURE_CALLBACK_THRESHOLD, [option, min, max], 'k s s', 0, ''
207
192
  end
@@ -222,8 +207,6 @@ module Tinkerforge
222
207
  # "'i'", "Callback is triggered when the object temperature is *inside* the min and max values"
223
208
  # "'<'", "Callback is triggered when the object temperature is smaller than the min value (max is ignored)"
224
209
  # "'>'", "Callback is triggered when the object temperature is greater than the min value (max is ignored)"
225
- #
226
- # The default value is ('x', 0, 0).
227
210
  def set_object_temperature_callback_threshold(option, min, max)
228
211
  send_request FUNCTION_SET_OBJECT_TEMPERATURE_CALLBACK_THRESHOLD, [option, min, max], 'k s s', 0, ''
229
212
  end
@@ -233,7 +216,7 @@ module Tinkerforge
233
216
  send_request FUNCTION_GET_OBJECT_TEMPERATURE_CALLBACK_THRESHOLD, [], '', 5, 'k s s'
234
217
  end
235
218
 
236
- # Sets the period in ms with which the threshold callbacks
219
+ # Sets the period with which the threshold callbacks
237
220
  #
238
221
  # * CALLBACK_AMBIENT_TEMPERATURE_REACHED,
239
222
  # * CALLBACK_OBJECT_TEMPERATURE_REACHED
@@ -244,8 +227,6 @@ module Tinkerforge
244
227
  # * BrickletTemperatureIR#set_object_temperature_callback_threshold
245
228
  #
246
229
  # keep being reached.
247
- #
248
- # The default value is 100.
249
230
  def set_debounce_period(debounce)
250
231
  send_request FUNCTION_SET_DEBOUNCE_PERIOD, [debounce], 'L', 0, ''
251
232
  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 #
@@ -102,10 +102,7 @@ module Tinkerforge
102
102
 
103
103
  end
104
104
 
105
- # Returns the ambient temperature of the sensor. The value
106
- # has a range of -400 to 1250 and is given in °C/10,
107
- # e.g. a value of 423 means that an ambient temperature of 42.3 °C is
108
- # measured.
105
+ # Returns the ambient temperature of the sensor.
109
106
  #
110
107
  #
111
108
  # If you want to get the value periodically, it is recommended to use the
@@ -115,7 +112,7 @@ module Tinkerforge
115
112
  send_request FUNCTION_GET_AMBIENT_TEMPERATURE, [], '', 2, 's'
116
113
  end
117
114
 
118
- # The period in ms is the period with which the CALLBACK_AMBIENT_TEMPERATURE callback is triggered
115
+ # The period is the period with which the CALLBACK_AMBIENT_TEMPERATURE callback is triggered
119
116
  # periodically. A value of 0 turns the callback off.
120
117
  #
121
118
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -140,8 +137,6 @@ module Tinkerforge
140
137
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
141
138
  #
142
139
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
143
- #
144
- # The default value is (0, false, 'x', 0, 0).
145
140
  def set_ambient_temperature_callback_configuration(period, value_has_to_change, option, min, max)
146
141
  send_request FUNCTION_SET_AMBIENT_TEMPERATURE_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k s s', 0, ''
147
142
  end
@@ -152,10 +147,7 @@ module Tinkerforge
152
147
  end
153
148
 
154
149
  # Returns the object temperature of the sensor, i.e. the temperature
155
- # of the surface of the object the sensor is aimed at. The value
156
- # has a range of -700 to 3800 and is given in °C/10,
157
- # e.g. a value of 3001 means that a temperature of 300.1 °C is measured
158
- # on the surface of the object.
150
+ # of the surface of the object the sensor is aimed at.
159
151
  #
160
152
  # The temperature of different materials is dependent on their `emissivity
161
153
  # <https://en.wikipedia.org/wiki/Emissivity>`__. The emissivity of the material
@@ -169,7 +161,7 @@ module Tinkerforge
169
161
  send_request FUNCTION_GET_OBJECT_TEMPERATURE, [], '', 2, 's'
170
162
  end
171
163
 
172
- # The period in ms is the period with which the CALLBACK_OBJECT_TEMPERATURE callback is triggered
164
+ # The period is the period with which the CALLBACK_OBJECT_TEMPERATURE callback is triggered
173
165
  # periodically. A value of 0 turns the callback off.
174
166
  #
175
167
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -194,8 +186,6 @@ module Tinkerforge
194
186
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
195
187
  #
196
188
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
197
- #
198
- # The default value is (0, false, 'x', 0, 0).
199
189
  def set_object_temperature_callback_configuration(period, value_has_to_change, option, min, max)
200
190
  send_request FUNCTION_SET_OBJECT_TEMPERATURE_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k s s', 0, ''
201
191
  end
@@ -221,9 +211,6 @@ module Tinkerforge
221
211
  # If you need a precise measurement for the object temperature, it is
222
212
  # absolutely crucial that you also provide a precise emissivity.
223
213
  #
224
- # The default emissivity is 1.0 (value of 65535) and the minimum emissivity the
225
- # sensor can handle is 0.1 (value of 6553).
226
- #
227
214
  # The emissivity is stored in non-volatile memory and will still be
228
215
  # used after a restart or power cycle of the Bricklet.
229
216
  def set_emissivity(emissivity)
@@ -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 #
@@ -91,9 +91,7 @@ module Tinkerforge
91
91
 
92
92
  end
93
93
 
94
- # Returns the temperature measured by the sensor. The value
95
- # has a range of -4500 to 13000 and is given in °C/100,
96
- # i.e. a value of 3200 means that a temperature of 32.00 °C is measured.
94
+ # Returns the temperature measured by the sensor.
97
95
  #
98
96
  #
99
97
  # If you want to get the value periodically, it is recommended to use the
@@ -103,7 +101,7 @@ module Tinkerforge
103
101
  send_request FUNCTION_GET_TEMPERATURE, [], '', 2, 's'
104
102
  end
105
103
 
106
- # The period in ms is the period with which the CALLBACK_TEMPERATURE callback is triggered
104
+ # The period is the period with which the CALLBACK_TEMPERATURE callback is triggered
107
105
  # periodically. A value of 0 turns the callback off.
108
106
  #
109
107
  # If the `value has to change`-parameter is set to true, the callback is only
@@ -128,8 +126,6 @@ module Tinkerforge
128
126
  # "'>'", "Threshold is triggered when the value is greater than the min value (max is ignored)"
129
127
  #
130
128
  # If the option is set to 'x' (threshold turned off) the callback is triggered with the fixed period.
131
- #
132
- # The default value is (0, false, 'x', 0, 0).
133
129
  def set_temperature_callback_configuration(period, value_has_to_change, option, min, max)
134
130
  send_request FUNCTION_SET_TEMPERATURE_CALLBACK_CONFIGURATION, [period, value_has_to_change, option, min, max], 'L ? k s s', 0, ''
135
131
  end