mqtt

AWS IoT Connection error : Invalid “caCert” option supplied with aws-iot-device-sdk

我是研究僧i 提交于 2020-06-28 05:26:28
问题 I've provisioned a device in AWS with device Certificate which is signed by my CA. Also, I've registered my CA along with verificationCert in AWS previously. Now when I send the data, In the options, var awsIot = require('aws-iot-device-sdk'); var device = awsIot.device({ privateKey: '--BEGIN RSA PRIVATE KEY--', //private key of my device clientCert: '--BEGIN CERTIFICATE --', //cat deviceCertificate and registered CA caCert: '--BEGIN CERTIFICATE--', //Amazon root CA clientId: 'Thing01',

Can an MQTT broker be configured not to echo messages on a topic?

半腔热情 提交于 2020-06-28 02:01:28
问题 If an mqtt client publishes to and subscribes to a topic, is it possible to convince the broker not to echo message sent by the client back to the client that published the message? For example, if there are four clients (A, B, C, D) that are subscribed to and publishing to topic "foo", and client A publishes a message, I would like the message to be received by clients B, C, and D, but not echoed back to client A. 回答1: The MQTT protocol provides publish/subscribe pattern so every topic you

Paho MQTT not connecting Android studio to the Mosquitto broker

吃可爱长大的小学妹 提交于 2020-06-23 13:20:12
问题 I hosted Mosquitto MQTT broker on Digital Ocean Cloud. Now, I am trying to connect it to the android studio. But it is not connecting to the MQTT broker. I have printed the throwable exception details so the error could be debugged.Please guide me on how this error could be solved. I tried with the following code. public class MainActivity extends AppCompatActivity { public MqttAndroidClient CLIENT; public MqttConnectOptions MQTT_CONNECTION_OPTIONS; @Override protected void onCreate(Bundle

Paho MQTT not connecting Android studio to the Mosquitto broker

99封情书 提交于 2020-06-23 13:20:11
问题 I hosted Mosquitto MQTT broker on Digital Ocean Cloud. Now, I am trying to connect it to the android studio. But it is not connecting to the MQTT broker. I have printed the throwable exception details so the error could be debugged.Please guide me on how this error could be solved. I tried with the following code. public class MainActivity extends AppCompatActivity { public MqttAndroidClient CLIENT; public MqttConnectOptions MQTT_CONNECTION_OPTIONS; @Override protected void onCreate(Bundle

Paho MQTT not connecting Android studio to the Mosquitto broker

前提是你 提交于 2020-06-23 13:18:58
问题 I hosted Mosquitto MQTT broker on Digital Ocean Cloud. Now, I am trying to connect it to the android studio. But it is not connecting to the MQTT broker. I have printed the throwable exception details so the error could be debugged.Please guide me on how this error could be solved. I tried with the following code. public class MainActivity extends AppCompatActivity { public MqttAndroidClient CLIENT; public MqttConnectOptions MQTT_CONNECTION_OPTIONS; @Override protected void onCreate(Bundle

Mqtt client disconnects when another client connects to the server

喜夏-厌秋 提交于 2020-06-17 09:51:27
问题 I am new to MQTT messaging system, but yet i managed to implement the paho Android service in snapdragon board running AOSP kk-4.4.2 . My service will start at the boot up and it will connect to the public broker of HiveMQ with port 1883 . The problem is after connecting my Android device running my custom AOSP to the server and if i try to connect another client from the android application which is running on a phone. The client in the snapdragon board automatically disconnects from the

Mqtt client disconnects when another client connects to the server

我的未来我决定 提交于 2020-06-17 09:51:12
问题 I am new to MQTT messaging system, but yet i managed to implement the paho Android service in snapdragon board running AOSP kk-4.4.2 . My service will start at the boot up and it will connect to the public broker of HiveMQ with port 1883 . The problem is after connecting my Android device running my custom AOSP to the server and if i try to connect another client from the android application which is running on a phone. The client in the snapdragon board automatically disconnects from the

After changing the version to Androidx, it does not become mqtt connect

拜拜、爱过 提交于 2020-05-31 04:16:40
问题 After changing version to Androidx and can not connect to mqtt server. It worked well in other versions than Androidx. Is this a version problem? My source code and build information is on the link-> I added it when I made the project. AndroidX Artifact has not been mqt communication since then. What is the problem? My error Logs↓ E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.adfdffffaaaaaaa, PID: 28371 java.lang.NoClassDefFoundError: Failed resolution of: Landroidx

I'm working with react_native_mqtt and need to implement secure mqtt communication between client and sever

雨燕双飞 提交于 2020-05-30 04:41:52
问题 While connecting to the mqtt server I'm setting useSSL to true. 443 port is being used. I need to use SSL pinning with this call, is setting useSSL flag enough? If not then suggest me the way in which I can use SSL pinning to securely connect with the server. I didn't fine anything related to certificate pinning in the react_native_mqtt library. Also, one of the libraries suggested to connect using node's tls.connect(). If anyone have used this ever please share. Thanks 来源: https:/

Google iot MQTT - ESP32 Connects the first time and only reconnects after 30m

烈酒焚心 提交于 2020-05-16 22:34:45
问题 I'm working with google Iot cloud with ESP32, I am sending fake values just to make a test with the MQTT data PUB/SUB, Apparently I'm succeeding in publishing the values, sometimes, I can't reconnect to google iot. I don't know why it keeps checking wifi...publising and doest check for the JWT key. I have noticed that if I connect once to the google iot and then I unplug the esp32 from my pc (disconnect no power), and plug it back again and try to connect, I will enter in this "checking wifi"