You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,34 +23,34 @@ The following instructions are applicable to Electric Imp’s [impAccelerator&tr
23
23
6. Power up the Fieldbus Gateway
24
24
7. Configure the Fieldbus Gateway for Internet access using BlinkUp™
25
25
26
-
## Modbus485Master Class Usage
26
+
## ModbusSerialMaster Class Usage
27
27
28
28
This is the main library class. It implements most of the functions listed in the [Modbus specification](http://www.modbus.org/docs/Modbus_over_serial_line_V1_02.pdf).
Instantiate a new Modbus485Master object and set the configuration of the UART bus over which it operates. The parameters *uart*and *rts*are, respectively, the imp UART in use and an imp GPIO pin which will be used to control flow. The *params* parameter is optional and takes a table containing the following keys:
32
+
Instantiates a new ModbusSerialMaster object and configures the UART bus over which it operates. The *uart*parameter is an imp UART object. The optional *rts*parameter should be used for RS485 communications when you are using an imp GPIO pin for control flow. The *params* parameter is optional and takes a table containing the following keys:
This method reads the contents of eight Exception Status outputs in a remote device (address passed into the first parameter. If a callback is supplied, it will be triggered when a response regarding this request is received. The callback takes two parameters: *error* and *result*.
This method provides a series of tests for checking the communication system between a client (Master) device and a server (Slave), or for checking various internal error conditions within a server. It takes the following parameters:
This method reads the description of the type, the current status and other information specific to a remote device whose address is specified in the method’s first parameter. The second, optional parameter is a function that will be fired when a response regarding this request is received. It takes two parameters, *error* and *result*.
This method modifies the contents of a specified holding register using a combination of an AND mask, an OR mask and the register’s current contents. The function can be used to set or clear individual bits in the register. It takes the following parameters:
This method performs a combination of one read operation and one write operation in a single Modbus transaction. The write operation is performed before the read. It takes the following parameters:
257
255
@@ -271,11 +269,20 @@ This method performs a combination of one read operation and one write operation
This method lets you read the identification and additional information relative to the physical and functional description of a remote device. It takes the following parameters:
281
288
@@ -343,4 +350,4 @@ The table below enumerates all the exception codes that can be possibly encounte
343
350
344
351
## License
345
352
346
-
The Modbus485Master library is licensed under the [MIT License](../LICENSE).
353
+
The ModbusSerialMaster library is licensed under the [MIT License](../LICENSE).
0 commit comments