Welcome, Guest
Username: Password: Remember me
Welcome to TeslaSCADA forum!

Tell us and our members about your experience of using our products.
  • Page:
  • 1
  • 2

TOPIC: MQTT Android

MQTT Android 2 months 1 week ago #2080

  • CYSan1994
  • CYSan1994's Avatar
  • Offline
  • New Member
  • Posts: 12
  • Karma: 0
Hi,
Currently I would like to send data from broker to android teslascada through mqtt (with username, password and ca.crt). I have created the app and is able to receive the data when the app is running on computer. but when I move the app and run it in android. It said cannot connect to server. I have added the ca.crt in private teslascada folder in android and installed the ca.crt in trusted certificate in android system. Can I know is there anymore security setting need to be done in android in order to receive the data?

Thanks,
San
The administrator has disabled public write access.

MQTT Android 2 months 1 week ago #2081

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 658
  • Thank you received: 101
  • Karma: -113
Hello,
No, there is no more security for Android devices. Did you place certificate in the private folder? Can you send me your project? I'll try to connect myself.

Best regards,
Ruslan
Last Edit: 2 months 1 week ago by fatkhrus.
The administrator has disabled public write access.

MQTT Android 2 months 1 week ago #2082

  • CYSan1994
  • CYSan1994's Avatar
  • Offline
  • New Member
  • Posts: 12
  • Karma: 0
Hi,
Here is it.
Attachments:
The administrator has disabled public write access.

MQTT Android 2 months 1 week ago #2083

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 658
  • Thank you received: 101
  • Karma: -113
Unfortunately I couldn't connect to your broker by using PC version also. I think some problems with certificate you've provided.

Best regards,
Ruslan
The administrator has disabled public write access.

MQTT Android 2 months 1 week ago #2084

  • CYSan1994
  • CYSan1994's Avatar
  • Offline
  • New Member
  • Posts: 12
  • Karma: 0
I have tested the certificate and should not be an issue. your side has any similar example that transmits message using MQTT (with authentication and certificate) from pc to android phone? Is there any log file for teslascada runtime in android so I can check any error happening in android?
Last Edit: 2 months 1 week ago by CYSan1994.
The administrator has disabled public write access.

MQTT Android 2 months 1 week ago #2085

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 658
  • Thank you received: 101
  • Karma: -113
I've got this error when try to connect to your broker: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
I don't know the reason of this mistake, we didn't meat this before. I can only recommend this article: www.littlebigextra.com/how-to-add-subjec...-signed-certificate/
We created self-signed certificate only in one example:https://teslascada.com/HTML/yandex-cloud.html
You can try to create the self-signed certificate like in the example and place it in the broker you use.

Best regards,
Ruslan
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Go to top