tinkerforge 2.1.22 → 2.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tinkerforge/brick_dc.rb +3 -3
- data/lib/tinkerforge/brick_hat.rb +11 -7
- data/lib/tinkerforge/brick_hat_zero.rb +2 -2
- data/lib/tinkerforge/brick_imu.rb +3 -3
- data/lib/tinkerforge/brick_imu_v2.rb +3 -3
- data/lib/tinkerforge/brick_master.rb +5 -5
- data/lib/tinkerforge/brick_red.rb +2 -2
- data/lib/tinkerforge/brick_servo.rb +3 -3
- data/lib/tinkerforge/brick_silent_stepper.rb +3 -3
- data/lib/tinkerforge/brick_stepper.rb +4 -4
- data/lib/tinkerforge/bricklet_accelerometer.rb +2 -2
- data/lib/tinkerforge/bricklet_accelerometer_v2.rb +81 -6
- data/lib/tinkerforge/bricklet_air_quality.rb +2 -2
- data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
- data/lib/tinkerforge/bricklet_ambient_light_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_ambient_light_v3.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_in_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_in_v3.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_out_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_out_v3.rb +2 -2
- data/lib/tinkerforge/bricklet_barometer.rb +2 -2
- data/lib/tinkerforge/bricklet_barometer_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_can.rb +2 -2
- data/lib/tinkerforge/bricklet_can_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_co2.rb +2 -2
- data/lib/tinkerforge/bricklet_co2_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_color.rb +4 -4
- data/lib/tinkerforge/bricklet_color_v2.rb +449 -0
- data/lib/tinkerforge/bricklet_compass.rb +356 -0
- data/lib/tinkerforge/bricklet_current12.rb +2 -2
- data/lib/tinkerforge/bricklet_current25.rb +2 -2
- data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
- data/lib/tinkerforge/bricklet_distance_ir_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_distance_us.rb +2 -2
- data/lib/tinkerforge/bricklet_distance_us_v2.rb +300 -0
- data/lib/tinkerforge/bricklet_dmx.rb +2 -2
- data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
- data/lib/tinkerforge/bricklet_dual_button_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_dust_detector.rb +2 -2
- data/lib/tinkerforge/bricklet_e_paper_296x128.rb +2 -2
- data/lib/tinkerforge/bricklet_energy_monitor.rb +375 -0
- data/lib/tinkerforge/bricklet_gps.rb +2 -2
- data/lib/tinkerforge/bricklet_gps_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
- data/lib/tinkerforge/bricklet_hall_effect_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_humidity.rb +2 -2
- data/lib/tinkerforge/bricklet_humidity_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_analog_out.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_analog_out_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_counter.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_digital_in_4_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_digital_out_4_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_dual_0_20ma_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_dual_analog_in_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_dual_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_quad_relay_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_io16.rb +2 -2
- data/lib/tinkerforge/bricklet_io16_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_io4.rb +2 -2
- data/lib/tinkerforge/bricklet_io4_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_isolator.rb +2 -2
- data/lib/tinkerforge/bricklet_joystick.rb +2 -2
- data/lib/tinkerforge/bricklet_joystick_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_laser_range_finder.rb +2 -2
- data/lib/tinkerforge/bricklet_laser_range_finder_v2.rb +5 -5
- data/lib/tinkerforge/bricklet_lcd_128x64.rb +24 -2
- data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
- data/lib/tinkerforge/bricklet_lcd_20x4.rb +2 -2
- data/lib/tinkerforge/bricklet_led_strip.rb +2 -2
- data/lib/tinkerforge/bricklet_led_strip_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_line.rb +2 -2
- data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
- data/lib/tinkerforge/bricklet_linear_poti_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_load_cell.rb +2 -2
- data/lib/tinkerforge/bricklet_load_cell_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_moisture.rb +2 -2
- data/lib/tinkerforge/bricklet_motion_detector.rb +2 -2
- data/lib/tinkerforge/bricklet_motion_detector_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_motorized_linear_poti.rb +2 -2
- data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
- data/lib/tinkerforge/bricklet_multi_touch_v2.rb +334 -0
- data/lib/tinkerforge/bricklet_nfc.rb +2 -2
- data/lib/tinkerforge/bricklet_nfc_rfid.rb +2 -2
- data/lib/tinkerforge/bricklet_oled_128x64.rb +2 -2
- data/lib/tinkerforge/bricklet_oled_128x64_v2.rb +24 -2
- data/lib/tinkerforge/bricklet_oled_64x48.rb +2 -2
- data/lib/tinkerforge/bricklet_one_wire.rb +2 -2
- data/lib/tinkerforge/bricklet_outdoor_weather.rb +2 -2
- data/lib/tinkerforge/bricklet_particulate_matter.rb +2 -2
- data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
- data/lib/tinkerforge/bricklet_piezo_speaker.rb +2 -2
- data/lib/tinkerforge/bricklet_piezo_speaker_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_ptc.rb +2 -2
- data/lib/tinkerforge/bricklet_ptc_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_real_time_clock.rb +2 -2
- data/lib/tinkerforge/bricklet_real_time_clock_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_remote_switch.rb +2 -2
- data/lib/tinkerforge/bricklet_remote_switch_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_rgb_led.rb +2 -2
- data/lib/tinkerforge/bricklet_rgb_led_button.rb +2 -2
- data/lib/tinkerforge/bricklet_rgb_led_matrix.rb +2 -2
- data/lib/tinkerforge/bricklet_rgb_led_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
- data/lib/tinkerforge/bricklet_rotary_encoder_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
- data/lib/tinkerforge/bricklet_rotary_poti_v2.rb +259 -0
- data/lib/tinkerforge/bricklet_rs232.rb +2 -2
- data/lib/tinkerforge/bricklet_rs232_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_rs485.rb +70 -60
- data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
- data/lib/tinkerforge/bricklet_segment_display_4x7_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_solid_state_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_solid_state_relay_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
- data/lib/tinkerforge/bricklet_sound_pressure_level.rb +2 -2
- data/lib/tinkerforge/bricklet_temperature.rb +2 -2
- data/lib/tinkerforge/bricklet_temperature_ir.rb +5 -3
- data/lib/tinkerforge/bricklet_temperature_ir_v2.rb +3 -11
- data/lib/tinkerforge/bricklet_temperature_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_thermal_imaging.rb +2 -2
- data/lib/tinkerforge/bricklet_thermocouple.rb +2 -2
- data/lib/tinkerforge/bricklet_thermocouple_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_tilt.rb +2 -2
- data/lib/tinkerforge/bricklet_uv_light.rb +2 -2
- data/lib/tinkerforge/bricklet_uv_light_v2.rb +2 -2
- data/lib/tinkerforge/bricklet_voltage.rb +2 -2
- data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
- data/lib/tinkerforge/bricklet_voltage_current_v2.rb +13 -2
- data/lib/tinkerforge/bricklet_xmc1400_breakout.rb +365 -0
- data/lib/tinkerforge/ip_connection.rb +1 -1
- data/lib/tinkerforge/version.rb +1 -1
- metadata +10 -3
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2019-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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,8 +26,9 @@ module Tinkerforge
|
|
26
26
|
|
27
27
|
# This callback is called only in Modbus slave mode when the slave receives a
|
28
28
|
# valid request from a Modbus master to read coils. The parameters are
|
29
|
-
# request ID of the request, the
|
30
|
-
# be read as received by the request.
|
29
|
+
# request ID of the request, the number of the first coil to be read and the number of coils to
|
30
|
+
# be read as received by the request. The number of the first coil is called starting address for backwards compatibility reasons.
|
31
|
+
# It is not an address, but instead a coil number in the range of 1 to 65536.
|
31
32
|
#
|
32
33
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_read_coils_request.
|
33
34
|
CALLBACK_MODBUS_SLAVE_READ_COILS_REQUEST = 43
|
@@ -40,8 +41,8 @@ module Tinkerforge
|
|
40
41
|
# response.
|
41
42
|
#
|
42
43
|
# Any non-zero exception code indicates a problem. If the exception code
|
43
|
-
# is greater than
|
44
|
-
# less than
|
44
|
+
# is greater than 0 then the number represents a Modbus exception code. If it is
|
45
|
+
# less than 0 then it represents other errors. For example, -1 indicates that
|
45
46
|
# the request timed out or that the master did not receive any valid response of the
|
46
47
|
# request within the master request timeout period as set by
|
47
48
|
# BrickletRS485#set_modbus_configuration.
|
@@ -49,8 +50,9 @@ module Tinkerforge
|
|
49
50
|
|
50
51
|
# This callback is called only in Modbus slave mode when the slave receives a
|
51
52
|
# valid request from a Modbus master to read holding registers. The parameters
|
52
|
-
# are request ID of the request, the
|
53
|
-
# registers to be read as received by the request.
|
53
|
+
# are request ID of the request, the number of the first holding register to be read and the number of holding
|
54
|
+
# registers to be read as received by the request. The number of the first holding register is called starting address for backwards compatibility reasons.
|
55
|
+
# It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is omitted.
|
54
56
|
#
|
55
57
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_read_holding_registers_request.
|
56
58
|
CALLBACK_MODBUS_SLAVE_READ_HOLDING_REGISTERS_REQUEST = 45
|
@@ -63,8 +65,8 @@ module Tinkerforge
|
|
63
65
|
# by the response.
|
64
66
|
#
|
65
67
|
# Any non-zero exception code indicates a problem. If the exception
|
66
|
-
# code is greater than
|
67
|
-
# it is less than
|
68
|
+
# code is greater than 0 then the number represents a Modbus exception code. If
|
69
|
+
# it is less than 0 then it represents other errors. For example, -1 indicates that
|
68
70
|
# the request timed out or that the master did not receive any valid response of the
|
69
71
|
# request within the master request timeout period as set by
|
70
72
|
# BrickletRS485#set_modbus_configuration.
|
@@ -72,8 +74,9 @@ module Tinkerforge
|
|
72
74
|
|
73
75
|
# This callback is called only in Modbus slave mode when the slave receives a
|
74
76
|
# valid request from a Modbus master to write a single coil. The parameters
|
75
|
-
# are request ID of the request, the coil
|
76
|
-
# written as received by the request.
|
77
|
+
# are request ID of the request, the number of the coil and the value of coil to be
|
78
|
+
# written as received by the request. The number of the coil is called coil address for backwards compatibility reasons.
|
79
|
+
# It is not an address, but instead a coil number in the range of 1 to 65536.
|
77
80
|
#
|
78
81
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_write_single_coil_request.
|
79
82
|
CALLBACK_MODBUS_SLAVE_WRITE_SINGLE_COIL_REQUEST = 47
|
@@ -85,17 +88,18 @@ module Tinkerforge
|
|
85
88
|
# request ID of the request and exception code of the response.
|
86
89
|
#
|
87
90
|
# Any non-zero exception code indicates a problem.
|
88
|
-
# If the exception code is greater than
|
89
|
-
# exception code. If it is less than
|
91
|
+
# If the exception code is greater than 0 then the number represents a Modbus
|
92
|
+
# exception code. If it is less than 0 then it represents other errors. For
|
90
93
|
# example, -1 indicates that the request timed out or that the master did not receive
|
91
94
|
# any valid response of the request within the master request timeout period as set
|
92
95
|
# by BrickletRS485#set_modbus_configuration.
|
93
96
|
CALLBACK_MODBUS_MASTER_WRITE_SINGLE_COIL_RESPONSE = 48
|
94
97
|
|
95
98
|
# This callback is called only in Modbus slave mode when the slave receives a
|
96
|
-
# valid request from a Modbus master to write a single register. The parameters
|
97
|
-
# are request ID of the request, the register
|
98
|
-
# be written as received by the request.
|
99
|
+
# valid request from a Modbus master to write a single holding register. The parameters
|
100
|
+
# are request ID of the request, the number of the holding register and the register value to
|
101
|
+
# be written as received by the request. The number of the holding register is called starting address for backwards compatibility reasons.
|
102
|
+
# It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is omitted.
|
99
103
|
#
|
100
104
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_write_single_register_request.
|
101
105
|
CALLBACK_MODBUS_SLAVE_WRITE_SINGLE_REGISTER_REQUEST = 49
|
@@ -107,8 +111,8 @@ module Tinkerforge
|
|
107
111
|
# request ID of the request and exception code of the response.
|
108
112
|
#
|
109
113
|
# Any non-zero exception code
|
110
|
-
# indicates a problem. If the exception code is greater than
|
111
|
-
# represents a Modbus exception code. If it is less than
|
114
|
+
# indicates a problem. If the exception code is greater than 0 then the number
|
115
|
+
# represents a Modbus exception code. If it is less than 0 then it represents
|
112
116
|
# other errors. For example, -1 indicates that the request timed out or that the
|
113
117
|
# master did not receive any valid response of the request within the master request
|
114
118
|
# timeout period as set by BrickletRS485#set_modbus_configuration.
|
@@ -116,8 +120,9 @@ module Tinkerforge
|
|
116
120
|
|
117
121
|
# This callback is called only in Modbus slave mode when the slave receives a
|
118
122
|
# valid request from a Modbus master to write multiple coils. The parameters
|
119
|
-
# are request ID of the request, the
|
120
|
-
# received by the request.
|
123
|
+
# are request ID of the request, the number of the first coil and the data to be written as
|
124
|
+
# received by the request. The number of the first coil is called starting address for backwards compatibility reasons.
|
125
|
+
# It is not an address, but instead a coil number in the range of 1 to 65536.
|
121
126
|
#
|
122
127
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_write_multiple_coils_request.
|
123
128
|
CALLBACK_MODBUS_SLAVE_WRITE_MULTIPLE_COILS_REQUEST_LOW_LEVEL = 51
|
@@ -129,17 +134,18 @@ module Tinkerforge
|
|
129
134
|
# request ID of the request and exception code of the response.
|
130
135
|
#
|
131
136
|
# Any non-zero exception code
|
132
|
-
# indicates a problem. If the exception code is greater than
|
133
|
-
# represents a Modbus exception code. If it is less than
|
137
|
+
# indicates a problem. If the exception code is greater than 0 then the number
|
138
|
+
# represents a Modbus exception code. If it is less than 0 then it represents
|
134
139
|
# other errors. For example, -1 indicates that the request timedout or that the
|
135
140
|
# master did not receive any valid response of the request within the master request
|
136
141
|
# timeout period as set by BrickletRS485#set_modbus_configuration.
|
137
142
|
CALLBACK_MODBUS_MASTER_WRITE_MULTIPLE_COILS_RESPONSE = 52
|
138
143
|
|
139
144
|
# This callback is called only in Modbus slave mode when the slave receives a
|
140
|
-
# valid request from a Modbus master to write multiple registers. The parameters
|
141
|
-
# are request ID of the request, the
|
142
|
-
# received by the request.
|
145
|
+
# valid request from a Modbus master to write multiple holding registers. The parameters
|
146
|
+
# are request ID of the request, the number of the first holding register and the data to be written as
|
147
|
+
# received by the request. The number of the first holding register is called starting address for backwards compatibility reasons.
|
148
|
+
# It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is omitted.
|
143
149
|
#
|
144
150
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_write_multiple_registers_request.
|
145
151
|
CALLBACK_MODBUS_SLAVE_WRITE_MULTIPLE_REGISTERS_REQUEST_LOW_LEVEL = 53
|
@@ -151,8 +157,8 @@ module Tinkerforge
|
|
151
157
|
# are request ID of the request and exception code of the response.
|
152
158
|
#
|
153
159
|
# Any non-zero
|
154
|
-
# exception code indicates a problem. If the exception code is greater than
|
155
|
-
# the number represents a Modbus exception code. If it is less than
|
160
|
+
# exception code indicates a problem. If the exception code is greater than 0 then
|
161
|
+
# the number represents a Modbus exception code. If it is less than 0 then it
|
156
162
|
# represents other errors. For example, -1 indicates that the request timedout or
|
157
163
|
# that the master did not receive any valid response of the request within the master
|
158
164
|
# request timeout period as set by BrickletRS485#set_modbus_configuration.
|
@@ -160,8 +166,9 @@ module Tinkerforge
|
|
160
166
|
|
161
167
|
# This callback is called only in Modbus slave mode when the slave receives a
|
162
168
|
# valid request from a Modbus master to read discrete inputs. The parameters
|
163
|
-
# are request ID of the request, the
|
164
|
-
# inputs to be read as received by the request.
|
169
|
+
# are request ID of the request, the number of the first discrete input and the number of discrete
|
170
|
+
# inputs to be read as received by the request. The number of the first discrete input is called starting address for backwards compatibility reasons.
|
171
|
+
# It is not an address, but instead a discrete input number in the range of 1 to 65536. The prefix digit 1 (for discrete input) is omitted.
|
165
172
|
#
|
166
173
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_read_discrete_inputs_request.
|
167
174
|
CALLBACK_MODBUS_SLAVE_READ_DISCRETE_INPUTS_REQUEST = 55
|
@@ -174,8 +181,8 @@ module Tinkerforge
|
|
174
181
|
# by the response.
|
175
182
|
#
|
176
183
|
# Any non-zero exception code indicates a problem. If the exception
|
177
|
-
# code is greater than
|
178
|
-
# it is less than
|
184
|
+
# code is greater than 0 then the number represents a Modbus exception code. If
|
185
|
+
# it is less than 0 then it represents other errors. For example, -1 indicates that
|
179
186
|
# the request timedout or that the master did not receive any valid response of the
|
180
187
|
# request within the master request timeout period as set by
|
181
188
|
# BrickletRS485#set_modbus_configuration.
|
@@ -183,8 +190,9 @@ module Tinkerforge
|
|
183
190
|
|
184
191
|
# This callback is called only in Modbus slave mode when the slave receives a
|
185
192
|
# valid request from a Modbus master to read input registers. The parameters
|
186
|
-
# are request ID of the request, the
|
187
|
-
# registers to be read as received by the request.
|
193
|
+
# are request ID of the request, the number of the first input register and the number of input
|
194
|
+
# registers to be read as received by the request. The number of the first input register is called starting address for backwards compatibility reasons.
|
195
|
+
# It is not an address, but instead a input register number in the range of 1 to 65536. The prefix digit 3 (for input register) is omitted.
|
188
196
|
#
|
189
197
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_read_input_registers_request.
|
190
198
|
CALLBACK_MODBUS_SLAVE_READ_INPUT_REGISTERS_REQUEST = 57
|
@@ -197,8 +205,8 @@ module Tinkerforge
|
|
197
205
|
# by the response.
|
198
206
|
#
|
199
207
|
# Any non-zero exception code indicates a problem. If the exception
|
200
|
-
# code is greater than
|
201
|
-
# it is less than
|
208
|
+
# code is greater than 0 then the number represents a Modbus exception code. If
|
209
|
+
# it is less than 0 then it represents other errors. For example, -1 indicates that
|
202
210
|
# the request timedout or that the master did not receive any valid response of the
|
203
211
|
# request within the master request timeout period as set by
|
204
212
|
# BrickletRS485#set_modbus_configuration.
|
@@ -217,8 +225,8 @@ module Tinkerforge
|
|
217
225
|
# response.
|
218
226
|
#
|
219
227
|
# Any non-zero exception code indicates a problem. If the exception code
|
220
|
-
# is greater than
|
221
|
-
# less than
|
228
|
+
# is greater than 0 then the number represents a Modbus exception code. If it is
|
229
|
+
# less than 0 then it represents other errors. For example, -1 indicates that
|
222
230
|
# the request timed out or that the master did not receive any valid response of the
|
223
231
|
# request within the master request timeout period as set by
|
224
232
|
# BrickletRS485#set_modbus_configuration.
|
@@ -232,8 +240,8 @@ module Tinkerforge
|
|
232
240
|
# by the response.
|
233
241
|
#
|
234
242
|
# Any non-zero exception code indicates a problem. If the exception
|
235
|
-
# code is greater than
|
236
|
-
# it is less than
|
243
|
+
# code is greater than 0 then the number represents a Modbus exception code. If
|
244
|
+
# it is less than 0 then it represents other errors. For example, -1 indicates that
|
237
245
|
# the request timed out or that the master did not receive any valid response of the
|
238
246
|
# request within the master request timeout period as set by
|
239
247
|
# BrickletRS485#set_modbus_configuration.
|
@@ -241,16 +249,18 @@ module Tinkerforge
|
|
241
249
|
|
242
250
|
# This callback is called only in Modbus slave mode when the slave receives a
|
243
251
|
# valid request from a Modbus master to write multiple coils. The parameters
|
244
|
-
# are request ID of the request, the
|
245
|
-
# received by the request.
|
252
|
+
# are request ID of the request, the number of the first coil and the data to be written as
|
253
|
+
# received by the request. The number of the first coil is called starting address for backwards compatibility reasons.
|
254
|
+
# It is not an address, but instead a coil number in the range of 1 to 65536.
|
246
255
|
#
|
247
256
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_write_multiple_coils_request.
|
248
257
|
CALLBACK_MODBUS_SLAVE_WRITE_MULTIPLE_COILS_REQUEST = -51
|
249
258
|
|
250
259
|
# This callback is called only in Modbus slave mode when the slave receives a
|
251
|
-
# valid request from a Modbus master to write multiple registers. The parameters
|
252
|
-
# are request ID of the request, the
|
253
|
-
# received by the request.
|
260
|
+
# valid request from a Modbus master to write multiple holding registers. The parameters
|
261
|
+
# are request ID of the request, the number of the first holding register and the data to be written as
|
262
|
+
# received by the request. The number of the first holding register is called starting address for backwards compatibility reasons.
|
263
|
+
# It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is omitted.
|
254
264
|
#
|
255
265
|
# To send a response of this request use BrickletRS485#modbus_slave_answer_write_multiple_registers_request.
|
256
266
|
CALLBACK_MODBUS_SLAVE_WRITE_MULTIPLE_REGISTERS_REQUEST = -53
|
@@ -263,8 +273,8 @@ module Tinkerforge
|
|
263
273
|
# by the response.
|
264
274
|
#
|
265
275
|
# Any non-zero exception code indicates a problem. If the exception
|
266
|
-
# code is greater than
|
267
|
-
# it is less than
|
276
|
+
# code is greater than 0 then the number represents a Modbus exception code. If
|
277
|
+
# it is less than 0 then it represents other errors. For example, -1 indicates that
|
268
278
|
# the request timedout or that the master did not receive any valid response of the
|
269
279
|
# request within the master request timeout period as set by
|
270
280
|
# BrickletRS485#set_modbus_configuration.
|
@@ -278,8 +288,8 @@ module Tinkerforge
|
|
278
288
|
# by the response.
|
279
289
|
#
|
280
290
|
# Any non-zero exception code indicates a problem. If the exception
|
281
|
-
# code is greater than
|
282
|
-
# it is less than
|
291
|
+
# code is greater than 0 then the number represents a Modbus exception code. If
|
292
|
+
# it is less than 0 then it represents other errors. For example, -1 indicates that
|
283
293
|
# the request timedout or that the master did not receive any valid response of the
|
284
294
|
# request within the master request timeout period as set by
|
285
295
|
# BrickletRS485#set_modbus_configuration.
|
@@ -689,7 +699,7 @@ module Tinkerforge
|
|
689
699
|
# function creates a Modbus function code 1 request.
|
690
700
|
#
|
691
701
|
# * Slave Address: Address of the target Modbus slave.
|
692
|
-
# * Starting Address: Starting address
|
702
|
+
# * Starting Address: Number of the first coil to read. For backwards compatibility reasons this parameter is called Starting Address. It is not an address, but instead a coil number in the range of 1 to 65536.
|
693
703
|
# * Count: Number of coils to read.
|
694
704
|
#
|
695
705
|
# Upon success the function will return a non-zero request ID which will represent
|
@@ -720,7 +730,7 @@ module Tinkerforge
|
|
720
730
|
# This function creates a Modbus function code 3 request.
|
721
731
|
#
|
722
732
|
# * Slave Address: Address of the target Modbus slave.
|
723
|
-
# * Starting Address: Starting address
|
733
|
+
# * Starting Address: Number of the first holding register to read. For backwards compatibility reasons this parameter is called Starting Address. It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is implicit and must be omitted.
|
724
734
|
# * Count: Number of holding registers to read.
|
725
735
|
#
|
726
736
|
# Upon success the function will return a non-zero request ID which will represent
|
@@ -750,7 +760,7 @@ module Tinkerforge
|
|
750
760
|
# This function creates a Modbus function code 5 request.
|
751
761
|
#
|
752
762
|
# * Slave Address: Address of the target Modbus slave.
|
753
|
-
# * Coil Address:
|
763
|
+
# * Coil Address: Number of the coil to be written. For backwards compatibility reasons, this parameter is called Starting Address. It is not an address, but instead a coil number in the range of 1 to 65536.
|
754
764
|
# * Coil Value: Value to be written.
|
755
765
|
#
|
756
766
|
# Upon success the function will return a non-zero request ID which will represent
|
@@ -777,11 +787,11 @@ module Tinkerforge
|
|
777
787
|
send_request FUNCTION_MODBUS_SLAVE_ANSWER_WRITE_SINGLE_REGISTER_REQUEST, [request_id], 'C', 0, ''
|
778
788
|
end
|
779
789
|
|
780
|
-
# In Modbus master mode this function can be used to write a single register of a
|
790
|
+
# In Modbus master mode this function can be used to write a single holding register of a
|
781
791
|
# slave. This function creates a Modbus function code 6 request.
|
782
792
|
#
|
783
793
|
# * Slave Address: Address of the target Modbus slave.
|
784
|
-
# * Register Address:
|
794
|
+
# * Register Address: Number of the holding register to be written. For backwards compatibility reasons, this parameter is called Starting Address. It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is implicit and must be omitted.
|
785
795
|
# * Register Value: Value to be written.
|
786
796
|
#
|
787
797
|
# Upon success the function will return a non-zero request ID which will represent
|
@@ -811,7 +821,7 @@ module Tinkerforge
|
|
811
821
|
# This function creates a Modbus function code 15 request.
|
812
822
|
#
|
813
823
|
# * Slave Address: Address of the target Modbus slave.
|
814
|
-
# * Starting Address: Starting address
|
824
|
+
# * Starting Address: Number of the first coil to write. For backwards compatibility reasons, this parameter is called Starting Address.It is not an address, but instead a coil number in the range of 1 to 65536.
|
815
825
|
#
|
816
826
|
# Upon success the function will return a non-zero request ID which will represent
|
817
827
|
# the current request initiated by the Modbus master. In case of failure the returned
|
@@ -840,7 +850,7 @@ module Tinkerforge
|
|
840
850
|
# This function creates a Modbus function code 16 request.
|
841
851
|
#
|
842
852
|
# * Slave Address: Address of the target Modbus slave.
|
843
|
-
# * Starting Address: Starting Address
|
853
|
+
# * Starting Address: Number of the first holding register to write. For backwards compatibility reasons, this parameter is called Starting Address. It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is implicit and must be omitted.
|
844
854
|
#
|
845
855
|
# Upon success the function will return a non-zero request ID which will represent
|
846
856
|
# the current request initiated by the Modbus master. In case of failure the returned
|
@@ -870,7 +880,7 @@ module Tinkerforge
|
|
870
880
|
# This function creates a Modbus function code 2 request.
|
871
881
|
#
|
872
882
|
# * Slave Address: Address of the target Modbus slave.
|
873
|
-
# * Starting Address: Starting address
|
883
|
+
# * Starting Address: Number of the first discrete input to read. For backwards compatibility reasons, this parameter is called Starting Address. It is not an address, but instead a discrete input number in the range of 1 to 65536. The prefix digit 1 (for discrete input) is implicit and must be omitted.
|
874
884
|
# * Count: Number of discrete inputs to read.
|
875
885
|
#
|
876
886
|
# Upon success the function will return a non-zero request ID which will represent
|
@@ -901,7 +911,7 @@ module Tinkerforge
|
|
901
911
|
# This function creates a Modbus function code 4 request.
|
902
912
|
#
|
903
913
|
# * Slave Address: Address of the target Modbus slave.
|
904
|
-
# * Starting Address: Starting address
|
914
|
+
# * Starting Address: Number of the first input register to read. For backwards compatibility reasons, this parameter is called Starting Address. It is not an address, but instead an input register number in the range of 1 to 65536. The prefix digit 3 (for input register) is implicit and must be omitted.
|
905
915
|
# * Count: Number of input registers to read.
|
906
916
|
#
|
907
917
|
# Upon success the function will return a non-zero request ID which will represent
|
@@ -1200,7 +1210,7 @@ module Tinkerforge
|
|
1200
1210
|
# This function creates a Modbus function code 15 request.
|
1201
1211
|
#
|
1202
1212
|
# * Slave Address: Address of the target Modbus slave.
|
1203
|
-
# * Starting Address: Starting address
|
1213
|
+
# * Starting Address: Number of the first coil to write. For backwards compatibility reasons, this parameter is called Starting Address.It is not an address, but instead a coil number in the range of 1 to 65536.
|
1204
1214
|
#
|
1205
1215
|
# Upon success the function will return a non-zero request ID which will represent
|
1206
1216
|
# the current request initiated by the Modbus master. In case of failure the returned
|
@@ -1245,7 +1255,7 @@ module Tinkerforge
|
|
1245
1255
|
# This function creates a Modbus function code 16 request.
|
1246
1256
|
#
|
1247
1257
|
# * Slave Address: Address of the target Modbus slave.
|
1248
|
-
# * Starting Address: Starting Address
|
1258
|
+
# * Starting Address: Number of the first holding register to write. For backwards compatibility reasons, this parameter is called Starting Address. It is not an address, but instead a holding register number in the range of 1 to 65536. The prefix digit 4 (for holding register) is implicit and must be omitted.
|
1249
1259
|
#
|
1250
1260
|
# Upon success the function will return a non-zero request ID which will represent
|
1251
1261
|
# the current request initiated by the Modbus master. In case of failure the returned
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2019-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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-
|
3
|
+
# This file was automatically generated on 2019-08-23. #
|
4
4
|
# #
|
5
|
-
# Ruby Bindings Version 2.1.
|
5
|
+
# Ruby Bindings Version 2.1.23 #
|
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 #
|