Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » About Cloud and MQTT
About Cloud and MQTT [message #1768162] Fri, 14 July 2017 09:00 Go to next message
LI Yi is currently offline LI YiFriend
Messages: 37
Registered: June 2017
Member
I have followings question in using kura to connect cloud to publishi data:

1. what is the URL of the cloud and do the kura need user account/password to connect to cloud?

2. where can i register to get MQTT username and password? I have tried the url mqtt://iot.eclipse.org:1883/, but i failed .


thank you very much!


Re: About Cloud and MQTT [message #1768245 is a reply to message #1768162] Sat, 15 July 2017 14:37 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 260
Registered: July 2015
Location: Italy
Senior Member
Hi Li,
it depends on your needs: if you just want to do a brief and simple connection test, you can try to connect to the iot.eclipse.org sandbox broker. Here you can find all the references you need. I've just done a test and it works. You don't need to specify a username and a password but, if you do, the broker will not complain.

After this first test, I would suggest to have a look at some cloud platforms. There are quite a few out there. Some of them are open source like Eclipse's Kapua project, others are commercial solutions like Eurotech's Everyware Cloud, Amazon IoT, Microsoft Azure IoT and others.

To have full remote device management you should refer to Kapua or Everyware Cloud solutions. For simple publishing, every mqtt based cloud solution should be ok.

Best regards,
Matteo
Re: About Cloud and MQTT [message #1768252 is a reply to message #1768245] Sun, 16 July 2017 00:57 Go to previous messageGo to next message
LI Yi is currently offline LI YiFriend
Messages: 37
Registered: June 2017
Member
Dear Matteo :

Thanks a lot!
My device connection to mqqt:iot.eclipse.org:1883 is successful , but i want to get the topic published by my device ,and I I have tried the URL ws://iot.eclipse.org:80/ws by my firefox 54.0.1and MQTT client at http://www.hivemq.com/demos/websocket-client/#data , and I also enabled the websocket by about:config, and the connection of both methods are failed. so i still can not display the published data.
Could you shoow me how to display the published data?
ps: My hiveMQ connection config is as following, is it right? Thank you!

mqtt:// broker.hivemq.com
Port: 1883

but my connection failed.

Thank you very much!
Best regards

LiYi



Re: About Cloud and MQTT [message #1768260 is a reply to message #1768252] Sun, 16 July 2017 07:01 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 260
Registered: July 2015
Location: Italy
Senior Member
I'm sorry, but I don't understand your setup.
Could you detail it a little bit more?

Thanks
Re: About Cloud and MQTT [message #1768311 is a reply to message #1768260] Mon, 17 July 2017 10:17 Go to previous messageGo to next message
LI Yi is currently offline LI YiFriend
Messages: 37
Registered: June 2017
Member
Hi
I am not familar with MQTT.

The kura in raspberry Pi B now can published data to iot.eclipse.org:1883 ,
but i dont know how and where to view the data published by kura ?

I have tried http://mqtt.me/mqtt_websocket_client/ tool ,but it shows me it can not connect to iot.eclipse.org.

I also tried Kapua project, I want to remote my device by https://kapua.eclipse.org/ and have set the MqttDataTransport-2 broker-url to
mqtt://kapua.eclipse.org:1883/ ,but the kura.log get the error as followings:

017-07-17 10:16:27,760 [DataServiceImpl:Submit] INFO o.e.k.c.d.DataServiceImpl - DataPublisherService not connected
2017-07-17 10:16:29,784 [qtp9984907-135] WARN o.e.k.c.d.t.m.MqttDataTransport - xxxxx Connect failed. Forcing disconnect. xxxxx {}
MqttException (0) - java.net.SocketTimeoutException: connect timed out
at org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttExc eption(ExceptionHelper.java:38)
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(Cli entComms.java:664)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja va:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket Impl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java :188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNet workModule.java:70)
at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(Cli entComms.java:650)
... 1 more
2017-07-17 10:16:29,791 [qtp9984907-135] INFO o.e.k.c.d.t.m.MqttDataTransport - Closing client...
2017-07-17 10:16:29,792 [qtp9984907-135] INFO o.e.k.c.d.t.m.MqttDataTransport - Closed
2017-07-17 10:16:29,793 [pool-11-thread-1] INFO o.e.k.c.s.r.LogStatusRunnable - Notification LED off
2017-07-17 10:16:29,794 [qtp9984907-135] WARN o.e.k.w.s.GwtNetworkServiceImpl - Error connecting
org.eclipse.kura.KuraConnectException: "Connection failed. Cannot connect"
at org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport.connect(M qttDataTransport.java:333)
at org.eclipse.kura.core.data.DataServiceImpl.con

thank you very much!

Re: About Cloud and MQTT [message #1768378 is a reply to message #1768311] Tue, 18 July 2017 07:48 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 260
Registered: July 2015
Location: Italy
Senior Member
I'm not aware of the credentials to access the kapua.eclipse.org instance. I believe it's still an internal environment. But that should be asked to the Kapua team.
I believe that, anyway, you can easily setup a Kapua VM following the instructions available here: https://github.com/eclipse/kapua

Best regards,
Matteo
Re: About Cloud and MQTT [message #1768391 is a reply to message #1768378] Tue, 18 July 2017 09:40 Go to previous messageGo to next message
LI Yi is currently offline LI YiFriend
Messages: 37
Registered: June 2017
Member
Hi,

Could you help me to solve the first question? thx.


Best Regards
Liyi
Re: About Cloud and MQTT [message #1768392 is a reply to message #1768391] Tue, 18 July 2017 09:43 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 260
Registered: July 2015
Location: Italy
Senior Member
The first question is how to view the data published?
If so, from the Kapua console you can do that.

Best regards,
Matteo
Previous Topic:Decode kura MQTT message using third party client libraries in C#
Next Topic:GreenHouse problem
Goto Forum:
  


Current Time: Tue Sep 18 20:00:21 GMT 2018

Powered by FUDForum. Page generated in 0.01891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top