tinkerforge 2.1.13 → 2.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/lib/tinkerforge/brick_dc.rb +122 -34
  2. data/lib/tinkerforge/brick_imu.rb +135 -49
  3. data/lib/tinkerforge/brick_imu_v2.rb +137 -54
  4. data/lib/tinkerforge/brick_master.rb +206 -120
  5. data/lib/tinkerforge/brick_red.rb +64 -69
  6. data/lib/tinkerforge/brick_servo.rb +133 -44
  7. data/lib/tinkerforge/brick_silent_stepper.rb +151 -65
  8. data/lib/tinkerforge/brick_stepper.rb +139 -51
  9. data/lib/tinkerforge/bricklet_accelerometer.rb +17 -18
  10. data/lib/tinkerforge/bricklet_ambient_light.rb +16 -19
  11. data/lib/tinkerforge/bricklet_ambient_light_v2.rb +13 -14
  12. data/lib/tinkerforge/bricklet_analog_in.rb +20 -23
  13. data/lib/tinkerforge/bricklet_analog_in_v2.rb +18 -21
  14. data/lib/tinkerforge/bricklet_analog_out.rb +8 -7
  15. data/lib/tinkerforge/bricklet_analog_out_v2.rb +7 -6
  16. data/lib/tinkerforge/bricklet_barometer.rb +21 -24
  17. data/lib/tinkerforge/bricklet_can.rb +14 -14
  18. data/lib/tinkerforge/bricklet_co2.rb +11 -12
  19. data/lib/tinkerforge/bricklet_color.rb +22 -25
  20. data/lib/tinkerforge/bricklet_current12.rb +18 -22
  21. data/lib/tinkerforge/bricklet_current25.rb +18 -22
  22. data/lib/tinkerforge/bricklet_distance_ir.rb +18 -21
  23. data/lib/tinkerforge/bricklet_distance_us.rb +13 -14
  24. data/lib/tinkerforge/bricklet_dual_button.rb +8 -8
  25. data/lib/tinkerforge/bricklet_dual_relay.rb +9 -9
  26. data/lib/tinkerforge/bricklet_dust_detector.rb +13 -14
  27. data/lib/tinkerforge/bricklet_gps.rb +21 -25
  28. data/lib/tinkerforge/bricklet_gps_v2.rb +56 -41
  29. data/lib/tinkerforge/bricklet_hall_effect.rb +13 -13
  30. data/lib/tinkerforge/bricklet_humidity.rb +16 -19
  31. data/lib/tinkerforge/bricklet_industrial_analog_out.rb +13 -12
  32. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +15 -15
  33. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +12 -12
  34. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +13 -14
  35. data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +16 -17
  36. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +12 -12
  37. data/lib/tinkerforge/bricklet_io16.rb +18 -19
  38. data/lib/tinkerforge/bricklet_io4.rb +18 -19
  39. data/lib/tinkerforge/bricklet_joystick.rb +18 -23
  40. data/lib/tinkerforge/bricklet_laser_range_finder.rb +26 -29
  41. data/lib/tinkerforge/bricklet_lcd_16x2.rb +14 -15
  42. data/lib/tinkerforge/bricklet_lcd_20x4.rb +18 -19
  43. data/lib/tinkerforge/bricklet_led_strip.rb +20 -20
  44. data/lib/tinkerforge/bricklet_line.rb +11 -12
  45. data/lib/tinkerforge/bricklet_linear_poti.rb +16 -19
  46. data/lib/tinkerforge/bricklet_load_cell.rb +20 -21
  47. data/lib/tinkerforge/bricklet_moisture.rb +13 -14
  48. data/lib/tinkerforge/bricklet_motion_detector.rb +7 -8
  49. data/lib/tinkerforge/bricklet_multi_touch.rb +10 -10
  50. data/lib/tinkerforge/bricklet_nfc_rfid.rb +11 -11
  51. data/lib/tinkerforge/bricklet_oled_128x64.rb +10 -9
  52. data/lib/tinkerforge/bricklet_oled_64x48.rb +10 -9
  53. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +6 -7
  54. data/lib/tinkerforge/bricklet_piezo_speaker.rb +7 -8
  55. data/lib/tinkerforge/bricklet_ptc.rb +23 -26
  56. data/lib/tinkerforge/bricklet_real_time_clock.rb +13 -14
  57. data/lib/tinkerforge/bricklet_remote_switch.rb +12 -12
  58. data/lib/tinkerforge/bricklet_rgb_led.rb +6 -5
  59. data/lib/tinkerforge/bricklet_rotary_encoder.rb +12 -15
  60. data/lib/tinkerforge/bricklet_rotary_poti.rb +16 -19
  61. data/lib/tinkerforge/bricklet_rs232.rb +12 -13
  62. data/lib/tinkerforge/bricklet_rs485.rb +1373 -0
  63. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +8 -8
  64. data/lib/tinkerforge/bricklet_solid_state_relay.rb +8 -8
  65. data/lib/tinkerforge/bricklet_sound_intensity.rb +11 -12
  66. data/lib/tinkerforge/bricklet_temperature.rb +13 -14
  67. data/lib/tinkerforge/bricklet_temperature_ir.rb +18 -21
  68. data/lib/tinkerforge/bricklet_thermocouple.rb +14 -16
  69. data/lib/tinkerforge/bricklet_tilt.rb +8 -8
  70. data/lib/tinkerforge/bricklet_uv_light.rb +11 -12
  71. data/lib/tinkerforge/bricklet_voltage.rb +16 -19
  72. data/lib/tinkerforge/bricklet_voltage_current.rb +25 -30
  73. data/lib/tinkerforge/ip_connection.rb +207 -138
  74. data/lib/tinkerforge/version.rb +1 -1
  75. metadata +3 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2017-05-11. #
3
+ # This file was automatically generated on 2017-07-27. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.13 #
5
+ # Ruby Bindings Version 2.1.14 #
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 #
@@ -76,7 +76,12 @@ module Tinkerforge
76
76
  FUNCTION_GET_DRIVE_MODE = 18 # :nodoc:
77
77
  FUNCTION_SET_CURRENT_VELOCITY_PERIOD = 19 # :nodoc:
78
78
  FUNCTION_GET_CURRENT_VELOCITY_PERIOD = 20 # :nodoc:
79
+ FUNCTION_SET_SPITFP_BAUDRATE_CONFIG = 231 # :nodoc:
80
+ FUNCTION_GET_SPITFP_BAUDRATE_CONFIG = 232 # :nodoc:
79
81
  FUNCTION_GET_SEND_TIMEOUT_COUNT = 233 # :nodoc:
82
+ FUNCTION_SET_SPITFP_BAUDRATE = 234 # :nodoc:
83
+ FUNCTION_GET_SPITFP_BAUDRATE = 235 # :nodoc:
84
+ FUNCTION_GET_SPITFP_ERROR_COUNT = 237 # :nodoc:
80
85
  FUNCTION_ENABLE_STATUS_LED = 238 # :nodoc:
81
86
  FUNCTION_DISABLE_STATUS_LED = 239 # :nodoc:
82
87
  FUNCTION_IS_STATUS_LED_ENABLED = 240 # :nodoc:
@@ -123,11 +128,12 @@ module Tinkerforge
123
128
  @response_expected[FUNCTION_GET_DRIVE_MODE] = RESPONSE_EXPECTED_ALWAYS_TRUE
124
129
  @response_expected[FUNCTION_SET_CURRENT_VELOCITY_PERIOD] = RESPONSE_EXPECTED_TRUE
125
130
  @response_expected[FUNCTION_GET_CURRENT_VELOCITY_PERIOD] = RESPONSE_EXPECTED_ALWAYS_TRUE
126
- @response_expected[CALLBACK_UNDER_VOLTAGE] = RESPONSE_EXPECTED_ALWAYS_FALSE
127
- @response_expected[CALLBACK_EMERGENCY_SHUTDOWN] = RESPONSE_EXPECTED_ALWAYS_FALSE
128
- @response_expected[CALLBACK_VELOCITY_REACHED] = RESPONSE_EXPECTED_ALWAYS_FALSE
129
- @response_expected[CALLBACK_CURRENT_VELOCITY] = RESPONSE_EXPECTED_ALWAYS_FALSE
131
+ @response_expected[FUNCTION_SET_SPITFP_BAUDRATE_CONFIG] = RESPONSE_EXPECTED_FALSE
132
+ @response_expected[FUNCTION_GET_SPITFP_BAUDRATE_CONFIG] = RESPONSE_EXPECTED_ALWAYS_TRUE
130
133
  @response_expected[FUNCTION_GET_SEND_TIMEOUT_COUNT] = RESPONSE_EXPECTED_ALWAYS_TRUE
134
+ @response_expected[FUNCTION_SET_SPITFP_BAUDRATE] = RESPONSE_EXPECTED_FALSE
135
+ @response_expected[FUNCTION_GET_SPITFP_BAUDRATE] = RESPONSE_EXPECTED_ALWAYS_TRUE
136
+ @response_expected[FUNCTION_GET_SPITFP_ERROR_COUNT] = RESPONSE_EXPECTED_ALWAYS_TRUE
131
137
  @response_expected[FUNCTION_ENABLE_STATUS_LED] = RESPONSE_EXPECTED_FALSE
132
138
  @response_expected[FUNCTION_DISABLE_STATUS_LED] = RESPONSE_EXPECTED_FALSE
133
139
  @response_expected[FUNCTION_IS_STATUS_LED_ENABLED] = RESPONSE_EXPECTED_ALWAYS_TRUE
@@ -140,6 +146,7 @@ module Tinkerforge
140
146
  @callback_formats[CALLBACK_EMERGENCY_SHUTDOWN] = ''
141
147
  @callback_formats[CALLBACK_VELOCITY_REACHED] = 's'
142
148
  @callback_formats[CALLBACK_CURRENT_VELOCITY] = 's'
149
+
143
150
  end
144
151
 
145
152
  # Sets the velocity of the motor. Whereas -32767 is full speed backward,
@@ -154,19 +161,19 @@ module Tinkerforge
154
161
  #
155
162
  # The default velocity is 0.
156
163
  def set_velocity(velocity)
157
- send_request(FUNCTION_SET_VELOCITY, [velocity], 's', 0, '')
164
+ send_request FUNCTION_SET_VELOCITY, [velocity], 's', 0, ''
158
165
  end
159
166
 
160
167
  # Returns the velocity as set by BrickDC#set_velocity.
161
168
  def get_velocity
162
- send_request(FUNCTION_GET_VELOCITY, [], '', 2, 's')
169
+ send_request FUNCTION_GET_VELOCITY, [], '', 2, 's'
163
170
  end
164
171
 
165
172
  # Returns the *current* velocity of the motor. This value is different
166
173
  # from BrickDC#get_velocity whenever the motor is currently accelerating
167
174
  # to a goal set by BrickDC#set_velocity.
168
175
  def get_current_velocity
169
- send_request(FUNCTION_GET_CURRENT_VELOCITY, [], '', 2, 's')
176
+ send_request FUNCTION_GET_CURRENT_VELOCITY, [], '', 2, 's'
170
177
  end
171
178
 
172
179
  # Sets the acceleration of the motor. It is given in *velocity/s*. An
@@ -182,12 +189,12 @@ module Tinkerforge
182
189
  #
183
190
  # The default acceleration is 10000.
184
191
  def set_acceleration(acceleration)
185
- send_request(FUNCTION_SET_ACCELERATION, [acceleration], 'S', 0, '')
192
+ send_request FUNCTION_SET_ACCELERATION, [acceleration], 'S', 0, ''
186
193
  end
187
194
 
188
195
  # Returns the acceleration as set by BrickDC#set_acceleration.
189
196
  def get_acceleration
190
- send_request(FUNCTION_GET_ACCELERATION, [], '', 2, 'S')
197
+ send_request FUNCTION_GET_ACCELERATION, [], '', 2, 'S'
191
198
  end
192
199
 
193
200
  # Sets the frequency (in Hz) of the PWM with which the motor is driven.
@@ -201,12 +208,12 @@ module Tinkerforge
201
208
  #
202
209
  # The default frequency is 15 kHz.
203
210
  def set_pwm_frequency(frequency)
204
- send_request(FUNCTION_SET_PWM_FREQUENCY, [frequency], 'S', 0, '')
211
+ send_request FUNCTION_SET_PWM_FREQUENCY, [frequency], 'S', 0, ''
205
212
  end
206
213
 
207
214
  # Returns the PWM frequency (in Hz) as set by BrickDC#set_pwm_frequency.
208
215
  def get_pwm_frequency
209
- send_request(FUNCTION_GET_PWM_FREQUENCY, [], '', 2, 'S')
216
+ send_request FUNCTION_GET_PWM_FREQUENCY, [], '', 2, 'S'
210
217
  end
211
218
 
212
219
  # Executes an active full brake.
@@ -218,14 +225,14 @@ module Tinkerforge
218
225
  #
219
226
  # Call BrickDC#set_velocity with 0 if you just want to stop the motor.
220
227
  def full_brake
221
- send_request(FUNCTION_FULL_BRAKE, [], '', 0, '')
228
+ send_request FUNCTION_FULL_BRAKE, [], '', 0, ''
222
229
  end
223
230
 
224
231
  # Returns the stack input voltage in mV. The stack input voltage is the
225
232
  # voltage that is supplied via the stack, i.e. it is given by a
226
233
  # Step-Down or Step-Up Power Supply.
227
234
  def get_stack_input_voltage
228
- send_request(FUNCTION_GET_STACK_INPUT_VOLTAGE, [], '', 2, 'S')
235
+ send_request FUNCTION_GET_STACK_INPUT_VOLTAGE, [], '', 2, 'S'
229
236
  end
230
237
 
231
238
  # Returns the external input voltage in mV. The external input voltage is
@@ -241,29 +248,29 @@ module Tinkerforge
241
248
  # the external connection, it will immediately be driven by the high
242
249
  # stack voltage.
243
250
  def get_external_input_voltage
244
- send_request(FUNCTION_GET_EXTERNAL_INPUT_VOLTAGE, [], '', 2, 'S')
251
+ send_request FUNCTION_GET_EXTERNAL_INPUT_VOLTAGE, [], '', 2, 'S'
245
252
  end
246
253
 
247
254
  # Returns the current consumption of the motor in mA.
248
255
  def get_current_consumption
249
- send_request(FUNCTION_GET_CURRENT_CONSUMPTION, [], '', 2, 'S')
256
+ send_request FUNCTION_GET_CURRENT_CONSUMPTION, [], '', 2, 'S'
250
257
  end
251
258
 
252
259
  # Enables the driver chip. The driver parameters can be configured (velocity,
253
260
  # acceleration, etc) before it is enabled.
254
261
  def enable
255
- send_request(FUNCTION_ENABLE, [], '', 0, '')
262
+ send_request FUNCTION_ENABLE, [], '', 0, ''
256
263
  end
257
264
 
258
265
  # Disables the driver chip. The configurations are kept (velocity,
259
266
  # acceleration, etc) but the motor is not driven until it is enabled again.
260
267
  def disable
261
- send_request(FUNCTION_DISABLE, [], '', 0, '')
268
+ send_request FUNCTION_DISABLE, [], '', 0, ''
262
269
  end
263
270
 
264
271
  # Returns *true* if the driver chip is enabled, *false* otherwise.
265
272
  def is_enabled
266
- send_request(FUNCTION_IS_ENABLED, [], '', 1, '?')
273
+ send_request FUNCTION_IS_ENABLED, [], '', 1, '?'
267
274
  end
268
275
 
269
276
  # Sets the minimum voltage in mV, below which the CALLBACK_UNDER_VOLTAGE callback
@@ -274,12 +281,12 @@ module Tinkerforge
274
281
  #
275
282
  # The default value is 6V.
276
283
  def set_minimum_voltage(voltage)
277
- send_request(FUNCTION_SET_MINIMUM_VOLTAGE, [voltage], 'S', 0, '')
284
+ send_request FUNCTION_SET_MINIMUM_VOLTAGE, [voltage], 'S', 0, ''
278
285
  end
279
286
 
280
287
  # Returns the minimum voltage as set by BrickDC#set_minimum_voltage
281
288
  def get_minimum_voltage
282
- send_request(FUNCTION_GET_MINIMUM_VOLTAGE, [], '', 2, 'S')
289
+ send_request FUNCTION_GET_MINIMUM_VOLTAGE, [], '', 2, 'S'
283
290
  end
284
291
 
285
292
  # Sets the drive mode. Possible modes are:
@@ -300,12 +307,12 @@ module Tinkerforge
300
307
  #
301
308
  # The default value is 0 = Drive/Brake.
302
309
  def set_drive_mode(mode)
303
- send_request(FUNCTION_SET_DRIVE_MODE, [mode], 'C', 0, '')
310
+ send_request FUNCTION_SET_DRIVE_MODE, [mode], 'C', 0, ''
304
311
  end
305
312
 
306
313
  # Returns the drive mode, as set by BrickDC#set_drive_mode.
307
314
  def get_drive_mode
308
- send_request(FUNCTION_GET_DRIVE_MODE, [], '', 1, 'C')
315
+ send_request FUNCTION_GET_DRIVE_MODE, [], '', 1, 'C'
309
316
  end
310
317
 
311
318
  # Sets a period in ms with which the CALLBACK_CURRENT_VELOCITY callback is triggered.
@@ -313,12 +320,47 @@ module Tinkerforge
313
320
  #
314
321
  # The default value is 0.
315
322
  def set_current_velocity_period(period)
316
- send_request(FUNCTION_SET_CURRENT_VELOCITY_PERIOD, [period], 'S', 0, '')
323
+ send_request FUNCTION_SET_CURRENT_VELOCITY_PERIOD, [period], 'S', 0, ''
317
324
  end
318
325
 
319
326
  # Returns the period as set by BrickDC#set_current_velocity_period.
320
327
  def get_current_velocity_period
321
- send_request(FUNCTION_GET_CURRENT_VELOCITY_PERIOD, [], '', 2, 'S')
328
+ send_request FUNCTION_GET_CURRENT_VELOCITY_PERIOD, [], '', 2, 'S'
329
+ end
330
+
331
+ # The SPITF protocol can be used with a dynamic baudrate. If the dynamic baudrate is
332
+ # enabled, the Brick will try to adapt the baudrate for the communication
333
+ # between Bricks and Bricklets according to the amount of data that is transferred.
334
+ #
335
+ # The baudrate will be increased exponetially if lots of data is send/receieved and
336
+ # decreased linearly if little data is send/received.
337
+ #
338
+ # This lowers the baudrate in applications where little data is transferred (e.g.
339
+ # a weather station) and increases the robustness. If there is lots of data to transfer
340
+ # (e.g. Thermal Imaging Bricklet) it automatically increases the baudrate as needed.
341
+ #
342
+ # In cases where some data has to transferred as fast as possible every few seconds
343
+ # (e.g. RS485 Bricklet with a high baudrate but small payload) you may want to turn
344
+ # the dynamic baudrate off to get the highest possible performance.
345
+ #
346
+ # The maximum value of the baudrate can be set per port with the function
347
+ # BrickDC#set_spitfp_baudrate. If the dynamic baudrate is disabled, the baudrate
348
+ # as set by BrickDC#set_spitfp_baudrate will be used statically.
349
+ #
350
+ # The minimum dynamic baudrate has a value range of 400000 to 2000000 baud.
351
+ #
352
+ # By default dynamic baudrate is enabled and the minimum dynamic baudrate is 400000.
353
+ #
354
+ # .. versionadded:: 2.3.5$nbsp;(Firmware)
355
+ def set_spitfp_baudrate_config(enable_dynamic_baudrate, minimum_dynamic_baudrate)
356
+ send_request FUNCTION_SET_SPITFP_BAUDRATE_CONFIG, [enable_dynamic_baudrate, minimum_dynamic_baudrate], '? L', 0, ''
357
+ end
358
+
359
+ # Returns the baudrate config, see BrickDC#set_spitfp_baudrate_config.
360
+ #
361
+ # .. versionadded:: 2.3.5$nbsp;(Firmware)
362
+ def get_spitfp_baudrate_config
363
+ send_request FUNCTION_GET_SPITFP_BAUDRATE_CONFIG, [], '', 5, '? L'
322
364
  end
323
365
 
324
366
  # Returns the timeout count for the different communication methods.
@@ -330,7 +372,53 @@ module Tinkerforge
330
372
  #
331
373
  # .. versionadded:: 2.3.3$nbsp;(Firmware)
332
374
  def get_send_timeout_count(communication_method)
333
- send_request(FUNCTION_GET_SEND_TIMEOUT_COUNT, [communication_method], 'C', 4, 'L')
375
+ send_request FUNCTION_GET_SEND_TIMEOUT_COUNT, [communication_method], 'C', 4, 'L'
376
+ end
377
+
378
+ # Sets the baudrate for a specific Bricklet port ('a' - 'd'). The
379
+ # baudrate can be in the range 400000 to 2000000.
380
+ #
381
+ # If you want to increase the throughput of Bricklets you can increase
382
+ # the baudrate. If you get a high error count because of high
383
+ # interference (see BrickDC#get_spitfp_error_count) you can decrease the
384
+ # baudrate.
385
+ #
386
+ # If the dynamic baudrate feature is enabled, the baudrate set by this
387
+ # function corresponds to the maximum baudrate (see BrickDC#set_spitfp_baudrate_config).
388
+ #
389
+ # Regulatory testing is done with the default baudrate. If CE compatability
390
+ # or similar is necessary in you applications we recommend to not change
391
+ # the baudrate.
392
+ #
393
+ # The default baudrate for all ports is 1400000.
394
+ #
395
+ # .. versionadded:: 2.3.3$nbsp;(Firmware)
396
+ def set_spitfp_baudrate(bricklet_port, baudrate)
397
+ send_request FUNCTION_SET_SPITFP_BAUDRATE, [bricklet_port, baudrate], 'k L', 0, ''
398
+ end
399
+
400
+ # Returns the baudrate for a given Bricklet port, see BrickDC#set_spitfp_baudrate.
401
+ #
402
+ # .. versionadded:: 2.3.3$nbsp;(Firmware)
403
+ def get_spitfp_baudrate(bricklet_port)
404
+ send_request FUNCTION_GET_SPITFP_BAUDRATE, [bricklet_port], 'k', 4, 'L'
405
+ end
406
+
407
+ # Returns the error count for the communication between Brick and Bricklet.
408
+ #
409
+ # The errors are divided into
410
+ #
411
+ # * ACK checksum errors,
412
+ # * message checksum errors,
413
+ # * frameing errors and
414
+ # * overflow errors.
415
+ #
416
+ # The errors counts are for errors that occur on the Brick side. All
417
+ # Bricklets have a similar function that returns the errors on the Bricklet side.
418
+ #
419
+ # .. versionadded:: 2.3.3$nbsp;(Firmware)
420
+ def get_spitfp_error_count(bricklet_port)
421
+ send_request FUNCTION_GET_SPITFP_ERROR_COUNT, [bricklet_port], 'k', 16, 'L L L L'
334
422
  end
335
423
 
336
424
  # Enables the status LED.
@@ -342,7 +430,7 @@ module Tinkerforge
342
430
  #
343
431
  # .. versionadded:: 2.3.1$nbsp;(Firmware)
344
432
  def enable_status_led
345
- send_request(FUNCTION_ENABLE_STATUS_LED, [], '', 0, '')
433
+ send_request FUNCTION_ENABLE_STATUS_LED, [], '', 0, ''
346
434
  end
347
435
 
348
436
  # Disables the status LED.
@@ -354,14 +442,14 @@ module Tinkerforge
354
442
  #
355
443
  # .. versionadded:: 2.3.1$nbsp;(Firmware)
356
444
  def disable_status_led
357
- send_request(FUNCTION_DISABLE_STATUS_LED, [], '', 0, '')
445
+ send_request FUNCTION_DISABLE_STATUS_LED, [], '', 0, ''
358
446
  end
359
447
 
360
448
  # Returns *true* if the status LED is enabled, *false* otherwise.
361
449
  #
362
450
  # .. versionadded:: 2.3.1$nbsp;(Firmware)
363
451
  def is_status_led_enabled
364
- send_request(FUNCTION_IS_STATUS_LED_ENABLED, [], '', 1, '?')
452
+ send_request FUNCTION_IS_STATUS_LED_ENABLED, [], '', 1, '?'
365
453
  end
366
454
 
367
455
  # Returns the firmware and protocol version and the name of the Bricklet for a
@@ -370,7 +458,7 @@ module Tinkerforge
370
458
  # This functions sole purpose is to allow automatic flashing of v1.x.y Bricklet
371
459
  # plugins.
372
460
  def get_protocol1_bricklet_name(port)
373
- send_request(FUNCTION_GET_PROTOCOL1_BRICKLET_NAME, [port], 'k', 44, 'C C3 Z40')
461
+ send_request FUNCTION_GET_PROTOCOL1_BRICKLET_NAME, [port], 'k', 44, 'C C3 Z40'
374
462
  end
375
463
 
376
464
  # Returns the temperature in °C/10 as measured inside the microcontroller. The
@@ -380,7 +468,7 @@ module Tinkerforge
380
468
  # accuracy of +-15%. Practically it is only useful as an indicator for
381
469
  # temperature changes.
382
470
  def get_chip_temperature
383
- send_request(FUNCTION_GET_CHIP_TEMPERATURE, [], '', 2, 's')
471
+ send_request FUNCTION_GET_CHIP_TEMPERATURE, [], '', 2, 's'
384
472
  end
385
473
 
386
474
  # Calling this function will reset the Brick. Calling this function
@@ -390,7 +478,7 @@ module Tinkerforge
390
478
  # calling functions on the existing ones will result in
391
479
  # undefined behavior!
392
480
  def reset
393
- send_request(FUNCTION_RESET, [], '', 0, '')
481
+ send_request FUNCTION_RESET, [], '', 0, ''
394
482
  end
395
483
 
396
484
  # Returns the UID, the UID where the Brick is connected to,
@@ -402,7 +490,7 @@ module Tinkerforge
402
490
  # The device identifier numbers can be found :ref:`here <device_identifier>`.
403
491
  # |device_identifier_constant|
404
492
  def get_identity
405
- send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
493
+ send_request FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S'
406
494
  end
407
495
 
408
496
  # Registers a callback with ID <tt>id</tt> to the block <tt>block</tt>.