|
Re: About Cloud and MQTT [message #1768245 is a reply to message #1768162] |
Sat, 15 July 2017 14:37 |
Matteo Maiero Messages: 423 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 #1768311 is a reply to message #1768260] |
Mon, 17 July 2017 10:17 |
LI Yi 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!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04575 seconds