mqtt

xamarin mqtt server unaccessible

廉价感情. 提交于 2020-01-16 17:35:53
问题 Im using system.Net.mqtt in a Xamarin project. I create a server like this: var server = MqttServer.Create(); server.ClientConnected += Debug; server.ClientDisconnected += Debug; server.Stopped += (o, e) => Debug($"disconnection ! {e.Message} and {e.Reason} "); server.Start(); I have a nodeMCU coded y micropython. If I start and android MQTT broker in the phone I CAN connect to it from the nodeMCU, and push and subscribe to messages. Flawless. But if I switch off the broker and start the

xamarin mqtt server unaccessible

两盒软妹~` 提交于 2020-01-16 17:35:11
问题 Im using system.Net.mqtt in a Xamarin project. I create a server like this: var server = MqttServer.Create(); server.ClientConnected += Debug; server.ClientDisconnected += Debug; server.Stopped += (o, e) => Debug($"disconnection ! {e.Message} and {e.Reason} "); server.Start(); I have a nodeMCU coded y micropython. If I start and android MQTT broker in the phone I CAN connect to it from the nodeMCU, and push and subscribe to messages. Flawless. But if I switch off the broker and start the

How many clients can a MQTT broker handle?

*爱你&永不变心* 提交于 2020-01-16 12:47:13
问题 MQTT is a publish/subscribe protocol. Whenever a publisher publishes to a topic, all the subscribers that have subscribed to that topic will get the message via an MQTT broker. I would like to know the maximum number of clients an MQTT broker can handle. Is there any upper limit for that? 回答1: The only way to work this out is to test depending on your specific workload. It will be entirely dependent on the following: The size of the machine you run the broker on. The size of the messages you

How many clients can a MQTT broker handle?

巧了我就是萌 提交于 2020-01-16 12:46:32
问题 MQTT is a publish/subscribe protocol. Whenever a publisher publishes to a topic, all the subscribers that have subscribed to that topic will get the message via an MQTT broker. I would like to know the maximum number of clients an MQTT broker can handle. Is there any upper limit for that? 回答1: The only way to work this out is to test depending on your specific workload. It will be entirely dependent on the following: The size of the machine you run the broker on. The size of the messages you

How many clients can a MQTT broker handle?

我只是一个虾纸丫 提交于 2020-01-16 12:46:29
问题 MQTT is a publish/subscribe protocol. Whenever a publisher publishes to a topic, all the subscribers that have subscribed to that topic will get the message via an MQTT broker. I would like to know the maximum number of clients an MQTT broker can handle. Is there any upper limit for that? 回答1: The only way to work this out is to test depending on your specific workload. It will be entirely dependent on the following: The size of the machine you run the broker on. The size of the messages you

MQTT tls/ssl publishes/subscribes with mqtt-spy and mqttfx. Wha are the right parameters for mosquitto_sub?

主宰稳场 提交于 2020-01-16 08:14:08
问题 I am running the 17.04 version of ubuntu with mosquitto server and clients installed. I've generated a set of certificates with: openssl genrsa -out ca.key 2048 openssl req -x509 -new -nodes -key ca.key -sha256 -days 3650 -out ca.crt openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 3650 -sha256 placed them into /etc/mosquitto/ca_certificates and configured

Sending message to some of the clients subscribed on same topic in MQTT

痞子三分冷 提交于 2020-01-16 04:00:30
问题 Is it possible to that two clients are subscribed to same topic in MQTT broker. And based on authorization, some of the massages are sent to one client and not other (subscribed on same topic). 回答1: No Any number of clients can be subscribed to a given topic, but you can not limit which of those clients can receive messages on that topic on a per message basis. It is all the topic or none. 回答2: There is no direct solution for this approach. But however I have a workaround for this solution.

Fatal error: Class 'Mosquitto\Client' not found

风流意气都作罢 提交于 2020-01-15 10:12:08
问题 I have been trying to publish a subscribe message using MQTT, but whenever I run my script it gives me this error: Fatal error: Class 'Mosquitto\Client' not found in /Applications/XAMPP/xamppfiles/htdocs/Mosquitto-PHP-master/examples/pub.php on line 3 This is connection: $client->connect("localhost", 1883, 5); I have downloaded code from below: https://github.com/mgdm/Mosquitto-PHP I tried to download code using pecl command but it gives me error: No releases available for package "pecl.php

MQTT Creates Multiple connections when onCreate is called more than once

心不动则不痛 提交于 2020-01-15 10:02:27
问题 I am creating an instant messaging system using Paho Android MQTT Client. Its implementation works as expected, however I am facing these errors. I call the Connection Class ( This also calls for the creation of the connection to the broker) in the onCreate of the MainActivity Class . Now the problem is that, assuming I am on the MainActivity Class and I press back to move from the MainActivity Class to another activity, and I later come back to the MainActivity Class , another broker

MQTT Creates Multiple connections when onCreate is called more than once

本小妞迷上赌 提交于 2020-01-15 10:02:05
问题 I am creating an instant messaging system using Paho Android MQTT Client. Its implementation works as expected, however I am facing these errors. I call the Connection Class ( This also calls for the creation of the connection to the broker) in the onCreate of the MainActivity Class . Now the problem is that, assuming I am on the MainActivity Class and I press back to move from the MainActivity Class to another activity, and I later come back to the MainActivity Class , another broker