Hi Buddhika,
The errors in the org.eclipse.kura.example.* projects are likely
from some recent refactoring. We moved all of the example projects
into a folder called "examples" and manage this as a separate
Maven project. In the Eclipse package explorer, you should see the
folder called "examples", if not, you should import it. You can
delete the individual org.eclipse.kura.example.* projects from the
Eclipse workspace.
You should not see the org.eclipse.soda.dk package in your
workspace. Be sure when you import the Maven projects that you
browse to the kura/kura directory in your Git repository. If you
only browse to kura, you may import projects from the
target-platform, which will cause problems.
Thanks,
--Dave
On 5/26/14, 7:13 AM, Cristiano De Alti wrote:
Hi Buddhika,
I'm posting your issues and questions to the kura_dev list
because they may be of interest to others.
If you find bugs in Kura or have troubles building it, please file
a bug to:
https://bugs.eclipse.org/bugs/describecomponents.cgi?product=Kura
> I built the project from the information I got from the
readme file from Git. It had 189 errors.
> Those were in
> org.eclipse.kura.example.project
> org.eclipse.kura.example.publisher
> org.ecliple.kura.example.serial.publisher
> org.eclipse.kura.soda.dk.comm
> from those, in org.eclipse.kura.soda.dk.comm had some package
naming errors.
> For example, package org.eclipse.soda.dk.comm was there
inside the classes of the
> org.eclipse.soda.dk package but it was the name of the
project so it gave error. Those errors were
> fixed.
I assume that building Kura with Maven succeeded and you have
problems/errors after importing the projects in Eclipse.
Is this correct?
Can you describe your environment in detail (OS/Java/Maven/Eclipse
versions)?
Did you follow the steps described in the project README? Did you
need changing something?
Try importing the projects in Eclipse as Java projects instead of
Maven projects. Does this help?
I see you are on Linux. I'm on Linux too so I should be able to
help.
Also, it's very important that, if you fix a problem, you share
the information on how you did it.
> Other errors are saying that it cannot resolve the import.
I'm working on that. If you have any idea
> please tell me.
Please try pulling the latest changes from github and see if they
fix the issue.
> I'm going to run Kura emulator on my PC as you suggested. If
you can give me an idea how to begin
> it, that would be nice.
The first step is to fix the compile errors in the Eclipse
workspace.
After that you could connect the Kura emulator to some MQTT broker
like the one at Eclipse IoT:
http://iot.eclipse.org/sandbox.html
and learn how to publish and subscribe and the format and encoding
(KuraPayload) of the MQTT payload used by Kura.
In order to connect to the Eclipse IoT MQTT broker you have to set
the broker URL in the MqttDataTransport configuration.
Usually you don't need to manually edit the Kura configuration but
you use the Kura Web UI to do that.
Unfortunately the project is still waiting for IP approval of one
of its dependencies.
For the time being you can copy the file in
{kura_repository}/kura/distrib/src/main/resources/raspberry-pi-nn/snapshot_0.xml
to /tmp/kura/snapshots/ (create the directory if it does not
exist) and set the Eclipse IoT broker URL in the MqttDataTransport
element:
<esf:property name="broker-url" array="false"
encrypted="false" type="String">
<esf:value>mqtt://iot.eclipse.org:1883/</esf:value>
</esf:property>
Also set the following DataService configuration property to true
(default: false):
<esf:property name="connect.auto-on-startup"
array="false" encrypted="false" type="Boolean">
<esf:value>true</esf:value>
</esf:property>
If you start the emulator it should be able to connect to the
broker.
After connecting to the broker you can install some example
project in the framework and familiarize with the Kura
CloudService and KuraPayload.
> I searched for californium examples and I could find some. So
I'm going to run those and get an
> idea.
Great. There is an CoAP server at Eclipse IoT.
Let's keep posting our progress here on the kura_dev ML.
Ciao,
Cristiano
On 22/05/2014 06:43, Buddhika Dilhan
wrote:
Hi cristiano,
I'm sending my email as a work document so that you can
make changes to my comments and I think it is easier you to
reply like that.
hope you don't angry with me. :)
--
Cristiano De Alti
Principal Software Engineer
direct: +39 0433 485468
EUROTECH
Imagine.Build.Succeed.
HEADQUARTERS
EUROTECH S.p.A. – Via
Fratelli Solari, 3/a | 33020 Amaro UD | Italy | Tel.
+39. 0433 485411 | Fax +39. 0433 485499 |
Cap. Soc.
8.878.946,00 € I.V. | P.IVA / C.F.: IT 01791330309 |
REA Udine 196115
www.eurotech.com
____________________________________
Il
presente messaggio ed ogni suo allegato sono
da intendersi inviati esclusivamente agli effettivi
destinatari e potrebbero essere soggetti a
restrizioni legali. Se avete ricevuto questo
messaggio per errore vi invitiamo a darne immediata
notifica al mittente e cancellarlo dal vostro
sistema. Qualsiasi altro uso di questo messaggio da
parte vostra e' strettamente proibito.
This e-mail, and any file
attached to it, is meant only for the intended
recipient of the transmission and may be a
communication privileged by law. If you have
received it in error, please notify the sender
immediately and delete the original from your
system. Any other use of this e-mail by you is
strictly forbidden.
____________________________________
Per favore,
pensate all’ambiente prima di stampare questa
e-mail. Please consider the
environment before printing this e-mail.
_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/kura-dev
|