XDK MQTT Problem
응답
16. 12. 5 오후 12:25

Hi,

I have a problem with MQTT Connection.

XDK connect successfuly ITM_BCS and  Local MQTT Server but connection after disconnect automatically MQTT

How to fix this?

 

Thanks

 

+1 (1 투표)
RE: XDK MQTT Problem
응답
16. 12. 5 오후 2:46 as a reply to Berat Uğur Demirkan.

Hello Berat,

please be more specific about your MQTT issue. 
to make a guess, I would ask you to get more into detail about your MQTT issue.

Do you have trouble with connecting to the ITM_BCS, your local MQTT Server or both of them?

Did you checked out our MQTT Paho demo? You can try to publish on your own server and topic. Doing so, the XDK should publish periodically without disconnecting.

Kind regards,
Manuel

0 (0 투표)
RE: XDK MQTT Problem
응답
16. 12. 6 오전 11:17 as a reply to Manuel Cerny.

Hello Manuel,

Problem XDK not receive MQTT data

 

SERVER OUTPUT

2016-12-06 12:39:04,046 INFO  - Client XDK connected
2016-12-06 12:39:04,074 INFO  - Subscribe from client XDK received: RBTR_BU2/XDK
/IO1 QoS: 0
2016-12-06 12:39:04,100 INFO  - Subscribe from client XDK received: RBTR_BU2/XDK
/IO2 QoS: 0
2016-12-06 12:39:04,120 INFO  - Subscribe from client XDK received: RBTR_BU2/XDK
/ORANGEQoS: 0
2016-12-06 12:41:34,123 INFO  - Client XDK disconnected
2016-12-06 13:11:06,830 INFO  - Client XDK connected
2016-12-06 13:11:06,860 INFO  - Subscribe from client XDK received: RBTR_BU2/XDK
/IO1 QoS: 0
2016-12-06 13:11:06,895 INFO  - Subscribe from client XDK received: RBTR_BU2/XDK
/IO2 QoS: 0
2016-12-06 13:11:06,916 INFO  - Subscribe from client XDK received: RBTR_BU2/XDK
/ORANGE QoS: 0
2016-12-06 13:11:13,185 INFO  - Client MQTT_FX_Client connected
2016-12-06 13:11:14,004 INFO  - Client MQTT_FX_Client sent a message to topic "R
BTR_BU2/XDK/ORANGE": "" (QoS: 0, retained: false)
2016-12-06 13:11:22,446 INFO  - Client MQTT_FX_Client sent a message to topic "R
BTR_BU2/XDK/ORANGE": "" (QoS: 0, retained: false)

XDK Console OUTPUT

 INFO | XDK DEVICE 1: [DEBUG]
 INFO | XDK DEVICE 1: Ip address of the device: 10.92.253.13 

XDK not receive MQTT data i don't know where error i'm used MQTT Paho demo project but changed Wifi to 802.1x

 

thanks

0 (0 투표)
RE: XDK MQTT Problem
응답
16. 12. 6 오후 5:50 as a reply to Berat Uğur Demirkan.

Hello Berat,

thank you for the provided information, unfortunately I still require more details to find a suitable solution for you.

Can you please answer the following questions:

  • Which parts of the MQTT Paho demo did you change in particular (Only the Wi-Fi settings)?
  • Did you successfully subscribed with the MQTT Paho demo to the IBM cloud?
  • Do you have trouble with connecting to the ITM_BCS, your local MQTT Server, or both of them?
  • What is your program supposed to do, only subscribing?


Kind regards,
Manuel

0 (0 투표)
RE: XDK MQTT Problem
응답
16. 12. 13 오전 7:06 as a reply to Manuel Cerny.

Hello,

I'm changed WiFi with Enterprise Wifi Demo

MQTT Paho successfullty connected local and IBM server

ITM_BCS connect but after connection MQTT subscribe and 1 second after disconnect

0 (0 투표)
RE: XDK MQTT Problem
응답
16. 12. 13 오후 5:55 as a reply to Berat Uğur Demirkan.

Hello Berat,

thank you very much for your reply. The IBM MQTT broker is currently offline thus I assume a connection is not possible.
If you would like to use a broker in the cloud I would recommend to use the HiveMQ MQTT broker instead.

I’m not quite sure which issue you are facing but I assume the disconnection is caused by the enterprise integration.

I would first recommend to: 

- Make sure there is a stable Wi-Fi connection, even without subscribing ( Comment out the subscribing)
- If you are sure the Wi-Fi connection is stable, subscribe to a working broker ( you could confirm this with a normal access point and default Paho demo)

If there are any further issues I would ask you to go more into detail how to reproduce your use case and occurring issue.

Kind regards,
Manuel

0 (0 투표)