Help: Extends Cloudlet [message #1766583] |
Fri, 23 June 2017 06:00  |
Eclipse User |
|
|
|
Hi,
I wanted to extends Cloudlet to build a bundle where i can remote manage my remote devices. I had tried the following codes and method [1][2] but it just doesn't activate with "s_logger.info("Activating Extends Cloudlet\")" inside the activate method. "activate" is also input into the component.xml by following this [3]. And even went further with this [4].
Then i decide to implement the "Cloudlet" myself by following this [5].I found that the KuraException in the doGet, doPut, doPost,.. causes it not able to activate.
No problem building bundle with demo.heater and running it.
Hardware: Raspberry Pi Model B.
Kura version: 3.0 (kura_3.0.0_raspberry-pi-bplus_installer.deb)
Developing on Windows 7, Eclipse Mars.2.
Thanks in advance!
[1] https://www.eclipse.org/forums/index.php/t/1071721/
[2] https://www.eclipse.org/forums/index.php/t/1075063/
[3] eclipse.github.io/kura/dev/hello-example.html
[4] eclipse.github.io/kura/dev/configurable_component.html
[5] github.com/eclipse/kura/blob/release-3.0.0/kura/org.eclipse.kura.api/src/main/java/org/eclipse/kura/cloud/Cloudlet.java
|
|
|
|
|
Re: Help: Extends Cloudlet [message #1767297 is a reply to message #1767048] |
Tue, 04 July 2017 10:02  |
Eclipse User |
|
|
|
Hi Wei,
Kura 3.0.0 runs only on Java 8, so I would suggest to upgrade the VM or choose an older version of Kura.
I would also suggest to try to align the Kura version of your target device with the user_workspace_archive version you are using in your Eclipse IDE for development in order to leverage correctly the existing APIs.
Best regards,
Matteo
|
|
|
Powered by
FUDForum. Page generated in 1.03258 seconds