Skip to content

Commit

Permalink
[modbus] Developer's guide to advice how to debug binding in IDE (#6674)
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Salonen <ssalonen@gmail.com>
  • Loading branch information
ssalonen authored and martinvw committed Jan 13, 2020
1 parent 6764efb commit 1dd74c3
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions bundles/org.openhab.binding.modbus/DEVELOPERS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# For Developers

## Debugging an addon

Please follow IDE setup guide at https://www.openhab.org/docs/developer/ide/eclipse.html.

When configuring dependencies in `openhab-distro/launch/app/pom.xml`, add all dependencies, including the transitive dependencies:

```xml
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.modbus</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.io.transport.modbus</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.openhab.osgiify</groupId>
<artifactId>net.wimpi.jamod</artifactId>
<version>1.2.3.OH</version>
<scope>runtime</scope>
</dependency>
```

## Testing Serial Implementation

You can use test serial slaves without any hardware on Linux using these steps:
Expand Down

0 comments on commit 1dd74c3

Please sign in to comment.