... | @@ -117,9 +117,29 @@ Press update and now our ENOSAR PI knows ho to handle the telegrams comming from |
... | @@ -117,9 +117,29 @@ Press update and now our ENOSAR PI knows ho to handle the telegrams comming from |
|
|
|
|
|
### Code a EnOcean listener
|
|
### Code a EnOcean listener
|
|
|
|
|
|
We provide a template project. Download the code and
|
|
We provide the template project, which will helps you to speedup your project setup. Goto https://ressel.fh-salzburg.ac.at/Applications/templates . download the code and follow the steps from the readme:
|
|
- Copy project into your git repository and rename the directory to your new package name (e.g. org.enosar.application.tutorialenocean)
|
|
- Rename the directory to your new package name (e.g. org.enosar.application.tutorialenoceanswitch)
|
|
- Import the project into eclipse (Import -> Git -> From existing local repository)
|
|
- Import the project into eclipse (Import -> Existing Projects...)
|
|
- Rename the java package name to your new package name
|
|
- Rename the project
|
|
- Rename the module settings in the pom.xml (artifactId, groupId, Activator qualified name and private packages)
|
|
- Rename the java package name to your new package name. Also rename the package name in the Activator.java
|
|
- Build the project with mvn clean install |
|
- Rename the module settings in the pom.xml (artifactId, groupId, Activator qualified name and private packages).
|
|
\ No newline at end of file |
|
Our project now looks like this
|
|
|
|

|
|
|
|
|
|
|
|
- Build the project with mvn clean install. Right click on pom.xml -> Run as -> Maven build ... Add goals `clean install` and then run it.
|
|
|
|

|
|
|
|
|
|
|
|
If successfully build you should get the output *BUILD SUCCESS*
|
|
|
|

|
|
|
|
|
|
|
|
To get rid of the wrong eclipse warning, press F5 and also ALT + F5 to update project deps in eclipse. Your setup should now look like this:
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
#### Add the listener code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|