tinkerforge 2.1.2 → 2.1.3

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 (51) hide show
  1. data/lib/tinkerforge/brick_dc.rb +4 -4
  2. data/lib/tinkerforge/brick_imu.rb +2 -2
  3. data/lib/tinkerforge/brick_master.rb +2 -2
  4. data/lib/tinkerforge/brick_servo.rb +2 -2
  5. data/lib/tinkerforge/brick_stepper.rb +2 -2
  6. data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
  7. data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
  8. data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
  9. data/lib/tinkerforge/bricklet_barometer.rb +2 -2
  10. data/lib/tinkerforge/bricklet_color.rb +6 -3
  11. data/lib/tinkerforge/bricklet_current12.rb +2 -2
  12. data/lib/tinkerforge/bricklet_current25.rb +2 -2
  13. data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
  14. data/lib/tinkerforge/bricklet_distance_us.rb +2 -2
  15. data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
  16. data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
  17. data/lib/tinkerforge/bricklet_gps.rb +2 -2
  18. data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
  19. data/lib/tinkerforge/bricklet_humidity.rb +2 -2
  20. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +2 -2
  21. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +2 -2
  22. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
  23. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
  24. data/lib/tinkerforge/bricklet_io16.rb +2 -2
  25. data/lib/tinkerforge/bricklet_io4.rb +2 -2
  26. data/lib/tinkerforge/bricklet_joystick.rb +2 -2
  27. data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
  28. data/lib/tinkerforge/bricklet_lcd_20x4.rb +5 -5
  29. data/lib/tinkerforge/bricklet_led_strip.rb +6 -6
  30. data/lib/tinkerforge/bricklet_line.rb +2 -2
  31. data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
  32. data/lib/tinkerforge/bricklet_moisture.rb +2 -2
  33. data/lib/tinkerforge/bricklet_motion_detector.rb +2 -2
  34. data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
  35. data/lib/tinkerforge/bricklet_nfc_rfid.rb +34 -14
  36. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
  37. data/lib/tinkerforge/bricklet_piezo_speaker.rb +9 -3
  38. data/lib/tinkerforge/bricklet_ptc.rb +2 -2
  39. data/lib/tinkerforge/bricklet_remote_switch.rb +2 -2
  40. data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
  41. data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
  42. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
  43. data/lib/tinkerforge/bricklet_solid_state_relay.rb +2 -2
  44. data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
  45. data/lib/tinkerforge/bricklet_temperature.rb +2 -2
  46. data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
  47. data/lib/tinkerforge/bricklet_tilt.rb +2 -2
  48. data/lib/tinkerforge/bricklet_voltage.rb +2 -2
  49. data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
  50. data/lib/tinkerforge/version.rb +1 -1
  51. metadata +2 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 #
@@ -250,12 +250,12 @@ module Tinkerforge
250
250
  end
251
251
 
252
252
  # Sets the minimum voltage in mV, below which the CALLBACK_UNDER_VOLTAGE callback
253
- # is triggered. The minimum possible value that works with the DC Brick is 5V.
253
+ # is triggered. The minimum possible value that works with the DC Brick is 6V.
254
254
  # You can use this function to detect the discharge of a battery that is used
255
255
  # to drive the motor. If you have a fixed power supply, you likely do not need
256
256
  # this functionality.
257
257
  #
258
- # The default value is 5V.
258
+ # The default value is 6V.
259
259
  def set_minimum_voltage(voltage)
260
260
  send_request(FUNCTION_SET_MINIMUM_VOLTAGE, [voltage], 'S', 0, '')
261
261
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 #
@@ -208,7 +208,10 @@ module Tinkerforge
208
208
  send_request(FUNCTION_LIGHT_OFF, [], '', 0, '')
209
209
  end
210
210
 
211
- # Returns *true* if the backlight is on and *false* otherwise.
211
+ # Returns the state of the LED. Possible values are:
212
+ #
213
+ # * 0: On
214
+ # * 1: Off
212
215
  def is_light_on
213
216
  send_request(FUNCTION_IS_LIGHT_ON, [], '', 1, 'C')
214
217
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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,11 +15,11 @@ module Tinkerforge
15
15
  DEVICE_IDENTIFIER = 212 # :nodoc:
16
16
 
17
17
  # This callback is triggered when a button is pressed. The parameter is
18
- # the number of the button (0 to 2 or 0 to 3 with hardware version >= 1.2).
18
+ # the number of the button (0 to 2 or 0 to 3 since hardware version 1.2).
19
19
  CALLBACK_BUTTON_PRESSED = 9
20
20
 
21
21
  # This callback is triggered when a button is released. The parameter is
22
- # the number of the button (0 to 2 or 0 to 3 with hardware version >= 1.2).
22
+ # the number of the button (0 to 2 or 0 to 3 since hardware version 1.2).
23
23
  CALLBACK_BUTTON_RELEASED = 10
24
24
 
25
25
  FUNCTION_WRITE_LINE = 1 # :nodoc:
@@ -118,7 +118,7 @@ module Tinkerforge
118
118
  send_request(FUNCTION_GET_CONFIG, [], '', 2, '? ?')
119
119
  end
120
120
 
121
- # Returns *true* if the button (0 to 2 or 0 to 3 with hardware version >= 1.2)
121
+ # Returns *true* if the button (0 to 2 or 0 to 3 since hardware version 1.2)
122
122
  # is pressed. If you want to react
123
123
  # on button presses and releases it is recommended to use the
124
124
  # CALLBACK_BUTTON_PRESSED and CALLBACK_BUTTON_RELEASED callbacks.
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 #
@@ -165,14 +165,14 @@ module Tinkerforge
165
165
  # Sets the type of the led driver chip. We currently support
166
166
  # the chips
167
167
  #
168
- # * WS2801,
169
- # * WS2811 and
170
- # * WS2812.
168
+ # * WS2801 (``chip`` = 2801),
169
+ # * WS2811 (``chip`` = 2811) and
170
+ # * WS2812 (``chip`` = 2812).
171
171
  #
172
172
  # The WS2812 is sometimes also called "NeoPixel", a name coined by
173
173
  # Adafruit.
174
174
  #
175
- # The default value is WS2801 = 2801.
175
+ # The default value is WS2801 (``chip`` = 2801).
176
176
  #
177
177
  # .. versionadded:: 2.0.2~(Plugin)
178
178
  def set_chip_type(chip)
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 #
@@ -75,9 +75,9 @@ module Tinkerforge
75
75
  #
76
76
  # Current the following tag types are supported:
77
77
  #
78
- # * Mifare Classic
79
- # * NFC Forum Type 1
80
- # * NFC Forum Type 2
78
+ # * Mifare Classic (``tag_type`` = 0)
79
+ # * NFC Forum Type 1 (``tag_type`` = 1)
80
+ # * NFC Forum Type 2 (``tag_type`` = 2)
81
81
  #
82
82
  # After you call BrickletNFCRFID#request_tag_id the NFC/RFID Bricklet will try to read
83
83
  # the tag ID from the tag. After this process is done the state will change.
@@ -116,8 +116,8 @@ module Tinkerforge
116
116
 
117
117
  # Returns the current state of the NFC/RFID Bricklet.
118
118
  #
119
- # On startup the Bricklet will be in the *Initialization* state. The initialization
120
- # will only take about 20ms. After that it changes to *Idle*.
119
+ # On startup the Bricklet will be in the *Initialization* state. The
120
+ # initialization will only take about 20ms. After that it changes to *Idle*.
121
121
  #
122
122
  # The functions of this Bricklet can be called in the *Idle* state and all of
123
123
  # the *Ready* and *Error* states.
@@ -128,20 +128,40 @@ module Tinkerforge
128
128
  # didn't. If the request worked you can get the page by calling BrickletNFCRFID#get_page.
129
129
  #
130
130
  # The same approach is used analogously for the other API functions.
131
+ #
132
+ # Possible states are:
133
+ #
134
+ # * Initialization = 0
135
+ # * Idle = 128
136
+ # * Error = 192
137
+ # * RequestTagID = 2
138
+ # * RequestTagIDReady = 130
139
+ # * RequestTagIDError = 194
140
+ # * AuthenticatingMifareClassicPage = 3
141
+ # * AuthenticatingMifareClassicPageReady = 131
142
+ # * AuthenticatingMifareClassicPageError = 195
143
+ # * WritePage = 4
144
+ # * WritePageReady = 132
145
+ # * WritePageError = 196
146
+ # * RequestPage = 5
147
+ # * RequestPageReady = 133
148
+ # * RequestPageError = 197
131
149
  def get_state
132
150
  send_request(FUNCTION_GET_STATE, [], '', 2, 'C ?')
133
151
  end
134
152
 
135
153
  # Mifare Classic tags use authentication. If you want to read from or write to
136
154
  # a Mifare Classic page you have to authenticate it beforehand.
137
- # Each page can be authenticated with two keys (A and B). A new Mifare Classic
138
- # tag that has not yet been written to can can be accessed with key number A
139
- # and the default key *[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]*.
155
+ # Each page can be authenticated with two keys: A (``key_number`` = 0) and B
156
+ # (``key_number`` = 1). A new Mifare Classic
157
+ # tag that has not yet been written to can can be accessed with key A
158
+ # and the default key ``[0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]``.
140
159
  #
141
160
  # The approach to read or write a Mifare Classic page is as follows:
142
161
  #
143
162
  # * Call BrickletNFCRFID#request_tag_id
144
- # * Wait for state to change to *RequestTagIDReady* (see BrickletNFCRFID#get_state or CALLBACK_STATE_CHANGED)
163
+ # * Wait for state to change to *RequestTagIDReady* (see BrickletNFCRFID#get_state
164
+ # or CALLBACK_STATE_CHANGED)
145
165
  # * Call BrickletNFCRFID#get_tag_id and check if tag ID is correct
146
166
  # * Call BrickletNFCRFID#authenticate_mifare_classic_page with page and key for the page
147
167
  # * Wait for state to change to *AuthenticatingMifareClassicPageReady*
@@ -153,9 +173,9 @@ module Tinkerforge
153
173
  # Writes 16 bytes starting from the given page. How many pages are written
154
174
  # depends on the tag type. The page sizes are as follows:
155
175
  #
156
- # * Mifare Classic page size: 16 byte (1 page is written)
157
- # * NFC Forum Type 1 page size: 8 byte (2 pages are written)
158
- # * NFC Forum Type 2 page size: 4 byte (4 pages are written)
176
+ # * Mifare Classic page size: 16 byte (one page is written)
177
+ # * NFC Forum Type 1 page size: 8 byte (two pages are written)
178
+ # * NFC Forum Type 2 page size: 4 byte (four pages are written)
159
179
  #
160
180
  # The general approach for writing to a tag is as follows:
161
181
  #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 #
@@ -26,6 +26,8 @@ module Tinkerforge
26
26
  FUNCTION_CALIBRATE = 3 # :nodoc:
27
27
  FUNCTION_GET_IDENTITY = 255 # :nodoc:
28
28
 
29
+ BEEP_DURATION_OFF = 0 # :nodoc:
30
+ BEEP_DURATION_INFINITE = 4294967295 # :nodoc:
29
31
 
30
32
  # Creates an object with the unique device ID <tt>uid</tt> and adds it to
31
33
  # the IP Connection <tt>ipcon</tt>.
@@ -50,7 +52,11 @@ module Tinkerforge
50
52
  # the piezo buzzer will beep for one second with a frequency of
51
53
  # approximately 2 kHz.
52
54
  #
53
- # *frequency* can be set between 585 and 7100.
55
+ # .. versionchanged:: 2.0.2~(Plugin)
56
+ # A duration of 0 stops the current beep if any, the frequency parameter is
57
+ # ignored. A duration of 4294967295 results in an infinite beep.
58
+ #
59
+ # The *frequency* parameter can be set between 585 and 7100.
54
60
  #
55
61
  # The Piezo Speaker Bricklet can only approximate the frequency, it will play
56
62
  # the best possible match by applying the calibration (see BrickletPiezoSpeaker#calibrate).
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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 2014-08-11. #
3
+ # This file was automatically generated on 2014-12-10. #
4
4
  # #
5
- # Bindings Version 2.1.2 #
5
+ # Bindings Version 2.1.3 #
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,4 +1,4 @@
1
1
 
2
2
  module Tinkerforge
3
- VERSION = '2.1.2'
3
+ VERSION = '2.1.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinkerforge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-11 00:00:00.000000000 Z
12
+ date: 2014-12-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: matthias@tinkerforge.com