tinkerforge 2.0.13 → 2.1.0

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 (49) hide show
  1. data/lib/tinkerforge/brick_dc.rb +4 -11
  2. data/lib/tinkerforge/brick_imu.rb +17 -16
  3. data/lib/tinkerforge/brick_master.rb +96 -86
  4. data/lib/tinkerforge/brick_servo.rb +5 -12
  5. data/lib/tinkerforge/brick_stepper.rb +4 -29
  6. data/lib/tinkerforge/bricklet_ambient_light.rb +4 -5
  7. data/lib/tinkerforge/bricklet_analog_in.rb +4 -5
  8. data/lib/tinkerforge/bricklet_analog_out.rb +4 -5
  9. data/lib/tinkerforge/bricklet_barometer.rb +4 -9
  10. data/lib/tinkerforge/bricklet_current12.rb +4 -5
  11. data/lib/tinkerforge/bricklet_current25.rb +4 -5
  12. data/lib/tinkerforge/bricklet_distance_ir.rb +4 -5
  13. data/lib/tinkerforge/bricklet_distance_us.rb +4 -5
  14. data/lib/tinkerforge/bricklet_dual_button.rb +4 -7
  15. data/lib/tinkerforge/bricklet_dual_relay.rb +4 -13
  16. data/lib/tinkerforge/bricklet_gps.rb +4 -5
  17. data/lib/tinkerforge/bricklet_hall_effect.rb +6 -5
  18. data/lib/tinkerforge/bricklet_humidity.rb +4 -5
  19. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +8 -6
  20. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +7 -11
  21. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +4 -5
  22. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +9 -13
  23. data/lib/tinkerforge/bricklet_io16.rb +15 -21
  24. data/lib/tinkerforge/bricklet_io4.rb +11 -17
  25. data/lib/tinkerforge/bricklet_joystick.rb +4 -5
  26. data/lib/tinkerforge/bricklet_lcd_16x2.rb +4 -5
  27. data/lib/tinkerforge/bricklet_lcd_20x4.rb +4 -5
  28. data/lib/tinkerforge/bricklet_led_strip.rb +6 -5
  29. data/lib/tinkerforge/bricklet_line.rb +4 -5
  30. data/lib/tinkerforge/bricklet_linear_poti.rb +4 -5
  31. data/lib/tinkerforge/bricklet_moisture.rb +4 -5
  32. data/lib/tinkerforge/bricklet_motion_detector.rb +4 -5
  33. data/lib/tinkerforge/bricklet_multi_touch.rb +4 -5
  34. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +4 -5
  35. data/lib/tinkerforge/bricklet_piezo_speaker.rb +4 -5
  36. data/lib/tinkerforge/bricklet_ptc.rb +4 -5
  37. data/lib/tinkerforge/bricklet_remote_switch.rb +4 -5
  38. data/lib/tinkerforge/bricklet_rotary_encoder.rb +4 -5
  39. data/lib/tinkerforge/bricklet_rotary_poti.rb +4 -5
  40. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +5 -6
  41. data/lib/tinkerforge/bricklet_sound_intensity.rb +4 -5
  42. data/lib/tinkerforge/bricklet_temperature.rb +4 -5
  43. data/lib/tinkerforge/bricklet_temperature_ir.rb +4 -5
  44. data/lib/tinkerforge/bricklet_tilt.rb +4 -5
  45. data/lib/tinkerforge/bricklet_voltage.rb +4 -5
  46. data/lib/tinkerforge/bricklet_voltage_current.rb +4 -5
  47. data/lib/tinkerforge/ip_connection.rb +73 -6
  48. data/lib/tinkerforge/version.rb +1 -1
  49. metadata +2 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -309,7 +309,7 @@ module Tinkerforge
309
309
  # what the correct period is, the default value (19.5ms) will most likely
310
310
  # work fine.
311
311
  #
312
- # The minimum possible period is 2000µs and the maximum is 65535µs.
312
+ # The minimum possible period is 1µs and the maximum is 65535µs.
313
313
  #
314
314
  # The default value is 19.5ms (19500µs).
315
315
  def set_period(servo_num, period)
@@ -425,8 +425,6 @@ module Tinkerforge
425
425
  #
426
426
  # This functions sole purpose is to allow automatic flashing of v1.x.y Bricklet
427
427
  # plugins.
428
- #
429
- # .. versionadded:: 2.0.0~(Firmware)
430
428
  def get_protocol1_bricklet_name(port)
431
429
  send_request(FUNCTION_GET_PROTOCOL1_BRICKLET_NAME, [port], 'k', 44, 'C C3 Z40')
432
430
  end
@@ -437,8 +435,6 @@ module Tinkerforge
437
435
  # The temperature is only proportional to the real temperature and it has an
438
436
  # accuracy of +-15%. Practically it is only useful as an indicator for
439
437
  # temperature changes.
440
- #
441
- # .. versionadded:: 1.1.3~(Firmware)
442
438
  def get_chip_temperature
443
439
  send_request(FUNCTION_GET_CHIP_TEMPERATURE, [], '', 2, 's')
444
440
  end
@@ -449,8 +445,6 @@ module Tinkerforge
449
445
  # After a reset you have to create new device objects,
450
446
  # calling functions on the existing ones will result in
451
447
  # undefined behavior!
452
- #
453
- # .. versionadded:: 1.1.3~(Firmware)
454
448
  def reset
455
449
  send_request(FUNCTION_RESET, [], '', 0, '')
456
450
  end
@@ -461,9 +455,8 @@ module Tinkerforge
461
455
  #
462
456
  # The position can be '0'-'8' (stack position).
463
457
  #
464
- # The device identifiers can be found :ref:`here <device_identifier>`.
465
- #
466
- # .. versionadded:: 2.0.0~(Firmware)
458
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
459
+ # |device_identifier_constant|
467
460
  def get_identity
468
461
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
469
462
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -33,8 +33,6 @@ module Tinkerforge
33
33
  # BrickStepper#set_all_data_period. The parameters are: the current velocity,
34
34
  # the current position, the remaining steps, the stack voltage, the external
35
35
  # voltage and the current consumption of the stepper motor.
36
- #
37
- # .. versionadded:: 1.1.6~(Firmware)
38
36
  CALLBACK_ALL_DATA = 40
39
37
 
40
38
  # This callback is triggered whenever the Stepper Brick enters a new state.
@@ -48,8 +46,6 @@ module Tinkerforge
48
46
  # * 4 = Deacceleration
49
47
  # * 5 = Direction change to forward
50
48
  # * 6 = Direction change to backward
51
- #
52
- # .. versionadded:: 1.1.6~(Firmware)
53
49
  CALLBACK_NEW_STATE = 41
54
50
 
55
51
  FUNCTION_SET_MAX_VELOCITY = 1 # :nodoc:
@@ -441,15 +437,11 @@ module Tinkerforge
441
437
  # Brick may not be able to cope with the load and overheat.
442
438
  #
443
439
  # The default value is *false*.
444
- #
445
- # .. versionadded:: 1.1.4~(Firmware)
446
440
  def set_sync_rect(sync_rect)
447
441
  send_request(FUNCTION_SET_SYNC_RECT, [sync_rect], '?', 0, '')
448
442
  end
449
443
 
450
444
  # Returns *true* if synchronous rectification is enabled, *false* otherwise.
451
- #
452
- # .. versionadded:: 1.1.4~(Firmware)
453
445
  def is_sync_rect
454
446
  send_request(FUNCTION_IS_SYNC_RECT, [], '', 1, '?')
455
447
  end
@@ -462,15 +454,11 @@ module Tinkerforge
462
454
  # 10steps/15s = 1steps/1.5s.
463
455
  #
464
456
  # The default value is 1.
465
- #
466
- # .. versionadded:: 1.1.6~(Firmware)
467
457
  def set_time_base(time_base)
468
458
  send_request(FUNCTION_SET_TIME_BASE, [time_base], 'L', 0, '')
469
459
  end
470
460
 
471
461
  # Returns the time base as set by BrickStepper#set_time_base.
472
- #
473
- # .. versionadded:: 1.1.6~(Firmware)
474
462
  def get_time_base
475
463
  send_request(FUNCTION_GET_TIME_BASE, [], '', 4, 'L')
476
464
  end
@@ -480,23 +468,17 @@ module Tinkerforge
480
468
  # voltage and the current consumption of the stepper motor.
481
469
  #
482
470
  # There is also a callback for this function, see CALLBACK_ALL_DATA.
483
- #
484
- # .. versionadded:: 1.1.6~(Firmware)
485
471
  def get_all_data
486
472
  send_request(FUNCTION_GET_ALL_DATA, [], '', 16, 'S l l S S S')
487
473
  end
488
474
 
489
475
  # Sets the period in ms with which the CALLBACK_ALL_DATA callback is triggered
490
476
  # periodically. A value of 0 turns the callback off.
491
- #
492
- # .. versionadded:: 1.1.6~(Firmware)
493
477
  def set_all_data_period(period)
494
478
  send_request(FUNCTION_SET_ALL_DATA_PERIOD, [period], 'L', 0, '')
495
479
  end
496
480
 
497
481
  # Returns the period as set by BrickStepper#set_all_data_period.
498
- #
499
- # .. versionadded:: 1.1.6~(Firmware)
500
482
  def get_all_data_period
501
483
  send_request(FUNCTION_GET_ALL_DATA_PERIOD, [], '', 4, 'L')
502
484
  end
@@ -506,8 +488,6 @@ module Tinkerforge
506
488
  #
507
489
  # This functions sole purpose is to allow automatic flashing of v1.x.y Bricklet
508
490
  # plugins.
509
- #
510
- # .. versionadded:: 2.0.0~(Firmware)
511
491
  def get_protocol1_bricklet_name(port)
512
492
  send_request(FUNCTION_GET_PROTOCOL1_BRICKLET_NAME, [port], 'k', 44, 'C C3 Z40')
513
493
  end
@@ -518,8 +498,6 @@ module Tinkerforge
518
498
  # The temperature is only proportional to the real temperature and it has an
519
499
  # accuracy of +-15%. Practically it is only useful as an indicator for
520
500
  # temperature changes.
521
- #
522
- # .. versionadded:: 1.1.4~(Firmware)
523
501
  def get_chip_temperature
524
502
  send_request(FUNCTION_GET_CHIP_TEMPERATURE, [], '', 2, 's')
525
503
  end
@@ -530,8 +508,6 @@ module Tinkerforge
530
508
  # After a reset you have to create new device objects,
531
509
  # calling functions on the existing ones will result in
532
510
  # undefined behavior!
533
- #
534
- # .. versionadded:: 1.1.4~(Firmware)
535
511
  def reset
536
512
  send_request(FUNCTION_RESET, [], '', 0, '')
537
513
  end
@@ -542,9 +518,8 @@ module Tinkerforge
542
518
  #
543
519
  # The position can be '0'-'8' (stack position).
544
520
  #
545
- # The device identifiers can be found :ref:`here <device_identifier>`.
546
- #
547
- # .. versionadded:: 2.0.0~(Firmware)
521
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
522
+ # |device_identifier_constant|
548
523
  def get_identity
549
524
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
550
525
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -232,9 +232,8 @@ module Tinkerforge
232
232
  #
233
233
  # The position can be 'a', 'b', 'c' or 'd'.
234
234
  #
235
- # The device identifiers can be found :ref:`here <device_identifier>`.
236
- #
237
- # .. versionadded:: 2.0.0~(Plugin)
235
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
236
+ # |device_identifier_constant|
238
237
  def get_identity
239
238
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
240
239
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -285,9 +285,8 @@ module Tinkerforge
285
285
  #
286
286
  # The position can be 'a', 'b', 'c' or 'd'.
287
287
  #
288
- # The device identifiers can be found :ref:`here <device_identifier>`.
289
- #
290
- # .. versionadded:: 2.0.0~(Plugin)
288
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
289
+ # |device_identifier_constant|
291
290
  def get_identity
292
291
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
293
292
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -79,9 +79,8 @@ module Tinkerforge
79
79
  #
80
80
  # The position can be 'a', 'b', 'c' or 'd'.
81
81
  #
82
- # The device identifiers can be found :ref:`here <device_identifier>`.
83
- #
84
- # .. versionadded:: 2.0.0~(Plugin)
82
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
83
+ # |device_identifier_constant|
85
84
  def get_identity
86
85
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
87
86
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -238,8 +238,6 @@ module Tinkerforge
238
238
  # used in aviation.
239
239
  #
240
240
  # The default value is 1013.25mbar.
241
- #
242
- # .. versionadded:: 1.1.0~(Plugin)
243
241
  def set_reference_air_pressure(air_pressure)
244
242
  send_request(FUNCTION_SET_REFERENCE_AIR_PRESSURE, [air_pressure], 'l', 0, '')
245
243
  end
@@ -256,8 +254,6 @@ module Tinkerforge
256
254
  end
257
255
 
258
256
  # Returns the reference air pressure as set by BrickletBarometer#set_reference_air_pressure.
259
- #
260
- # .. versionadded:: 1.1.0~(Plugin)
261
257
  def get_reference_air_pressure
262
258
  send_request(FUNCTION_GET_REFERENCE_AIR_PRESSURE, [], '', 4, 'l')
263
259
  end
@@ -299,9 +295,8 @@ module Tinkerforge
299
295
  #
300
296
  # The position can be 'a', 'b', 'c' or 'd'.
301
297
  #
302
- # The device identifiers can be found :ref:`here <device_identifier>`.
303
- #
304
- # .. versionadded:: 2.0.0~(Plugin)
298
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
299
+ # |device_identifier_constant|
305
300
  def get_identity
306
301
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
307
302
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -260,9 +260,8 @@ module Tinkerforge
260
260
  #
261
261
  # The position can be 'a', 'b', 'c' or 'd'.
262
262
  #
263
- # The device identifiers can be found :ref:`here <device_identifier>`.
264
- #
265
- # .. versionadded:: 2.0.0~(Plugin)
263
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
264
+ # |device_identifier_constant|
266
265
  def get_identity
267
266
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
268
267
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -260,9 +260,8 @@ module Tinkerforge
260
260
  #
261
261
  # The position can be 'a', 'b', 'c' or 'd'.
262
262
  #
263
- # The device identifiers can be found :ref:`here <device_identifier>`.
264
- #
265
- # .. versionadded:: 2.0.0~(Plugin)
263
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
264
+ # |device_identifier_constant|
266
265
  def get_identity
267
266
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
268
267
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -260,9 +260,8 @@ module Tinkerforge
260
260
  #
261
261
  # The position can be 'a', 'b', 'c' or 'd'.
262
262
  #
263
- # The device identifiers can be found :ref:`here <device_identifier>`.
264
- #
265
- # .. versionadded:: 2.0.0~(Plugin)
263
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
264
+ # |device_identifier_constant|
266
265
  def get_identity
267
266
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
268
267
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -167,9 +167,8 @@ module Tinkerforge
167
167
  #
168
168
  # The position can be 'a', 'b', 'c' or 'd'.
169
169
  #
170
- # The device identifiers can be found :ref:`here <device_identifier>`.
171
- #
172
- # .. versionadded:: 2.0.0~(Plugin)
170
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
171
+ # |device_identifier_constant|
173
172
  def get_identity
174
173
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
175
174
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -95,8 +95,6 @@ module Tinkerforge
95
95
  # Sets the state of the selected LED (0 or 1).
96
96
  #
97
97
  # The other LED remains untouched.
98
- #
99
- # .. versionadded:: 2.0.0~(Plugin)
100
98
  def set_selected_led_state(led, state)
101
99
  send_request(FUNCTION_SET_SELECTED_LED_STATE, [led, state], 'C C', 0, '')
102
100
  end
@@ -107,9 +105,8 @@ module Tinkerforge
107
105
  #
108
106
  # The position can be 'a', 'b', 'c' or 'd'.
109
107
  #
110
- # The device identifiers can be found :ref:`here <device_identifier>`.
111
- #
112
- # .. versionadded:: 2.0.0~(Plugin)
108
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
109
+ # |device_identifier_constant|
113
110
  def get_identity
114
111
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
115
112
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -17,8 +17,6 @@ module Tinkerforge
17
17
  # This callback is triggered whenever a monoflop timer reaches 0. The
18
18
  # parameter contain the relay (1 or 2) and the current state of the relay
19
19
  # (the state after the monoflop).
20
- #
21
- # .. versionadded:: 1.1.1~(Plugin)
22
20
  CALLBACK_MONOFLOP_DONE = 5
23
21
 
24
22
  FUNCTION_SET_STATE = 1 # :nodoc:
@@ -79,8 +77,6 @@ module Tinkerforge
79
77
  # stacks. You can now call this function every second, with a time parameter
80
78
  # of two seconds. The relay will be on all the time. If now the RS485
81
79
  # connection is lost, the relay will turn off in at most two seconds.
82
- #
83
- # .. versionadded:: 1.1.1~(Plugin)
84
80
  def set_monoflop(relay, state, time)
85
81
  send_request(FUNCTION_SET_MONOFLOP, [relay, state, time], 'C ? L', 0, '')
86
82
  end
@@ -90,8 +86,6 @@ module Tinkerforge
90
86
  #
91
87
  # If the timer is not running currently, the remaining time will be returned
92
88
  # as 0.
93
- #
94
- # .. versionadded:: 1.1.1~(Plugin)
95
89
  def get_monoflop(relay)
96
90
  send_request(FUNCTION_GET_MONOFLOP, [relay], 'C', 9, '? L L')
97
91
  end
@@ -99,8 +93,6 @@ module Tinkerforge
99
93
  # Sets the state of the selected relay (1 or 2), *true* means on and *false* means off.
100
94
  #
101
95
  # The other relay remains untouched.
102
- #
103
- # .. versionadded:: 2.0.0~(Plugin)
104
96
  def set_selected_state(relay, state)
105
97
  send_request(FUNCTION_SET_SELECTED_STATE, [relay, state], 'C ?', 0, '')
106
98
  end
@@ -111,9 +103,8 @@ module Tinkerforge
111
103
  #
112
104
  # The position can be 'a', 'b', 'c' or 'd'.
113
105
  #
114
- # The device identifiers can be found :ref:`here <device_identifier>`.
115
- #
116
- # .. versionadded:: 2.0.0~(Plugin)
106
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
107
+ # |device_identifier_constant|
117
108
  def get_identity
118
109
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
119
110
  end