--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Just pick any MQTT tutorial you like on the Web. There aren't many RabbitMQ-specific aspects,besides the default user limited to localhost by default and the documented limitations on http://rabbitmq.com/mqtt.html.All the fundamentals are still the same with any client library.
On Sun, Feb 5, 2017 at 12:57 AM, Admir Berbiu <admir...@gmail.com> wrote:
Hi,Could sb help me with any tutorial using RabbitMQ as a broker for MQTT? I'm new here and want to learn sth.I could use c# or java. What I want to do is to take some data from a textfile and send them through MQTT to the RabbitMQ broker.A "hello world" example would be more than enough. I checked the general c# tutorials in RabbitMQ, but I am wondering how to use it if I am sending through MQTT.Thank you
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--MKStaff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/V8njClbU7GM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
Just pick any MQTT tutorial you like on the Web. There aren't many RabbitMQ-specific aspects,besides the default user limited to localhost by default and the documented limitations on http://rabbitmq.com/mqtt.html.All the fundamentals are still the same with any client library.
On Sun, Feb 5, 2017 at 12:57 AM, Admir Berbiu <admir...@gmail.com> wrote:
Hi,Could sb help me with any tutorial using RabbitMQ as a broker for MQTT? I'm new here and want to learn sth.I could use c# or java. What I want to do is to take some data from a textfile and send them through MQTT to the RabbitMQ broker.A "hello world" example would be more than enough. I checked the general c# tutorials in RabbitMQ, but I am wondering how to use it if I am sending through MQTT.Thank you
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
public static void Main()
{
// create client instance
MqttClient client = new MqttClient(IPAddress.Parse("127.0.0.1"));
// register to message received
client.MqttMsgPublishReceived += client_MqttMsgPublishReceived;
string clientId = Guid.NewGuid().ToString();
client.Connect(clientId);
// subscribe to the topic "/home/temperature" with QoS 1
client.Subscribe(new string[] { "Xhindi" }, new byte[] { MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE });
string strValue = Convert.ToString("This is a test message by Xhino!!!");
string strValue1 = Convert.ToString("This is a test message by Sandri!!!");
string strValue2 = Convert.ToString("KNP!!!");
string strValue3 = Convert.ToString("KONTH!!!");
System.Threading.Timer timer = null;
timer = new System.Threading.Timer((obj) =>
{
// publish a message on "/home/temperature" topic with QoS 1
client.Publish("Xhindi", Encoding.UTF8.GetBytes(strValue), MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE, false);
// client.Publish("Xhindi", Encoding.UTF8.GetBytes(strValue1), MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE, false);
// client.Publish("Xhindi", Encoding.UTF8.GetBytes(strValue2), MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE, false);
// client.Publish("Xhindi", Encoding.UTF8.GetBytes(strValue3), MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE, false);
// timer.Dispose();
},
null, 15000, System.Threading.Timeout.Infinite);
int milliseconds = 5000;
Thread.Sleep(milliseconds);
//LoadJson();
//writeJson();
}
<<<
}
<<<
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send an email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send an email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to rabbitm...@googlegroups.com.
> To post to this group, send an email to rabbitmq-users@googlegroups.com.> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
> To post to this group, send an email to rabbitmq-users@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send an email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
> To post to this group, send an email to rabbitm...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send an email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
C# & java I could deal with no problem.
Thank you a lot.
I have already tried like 5_6 of examples but I had the same issue with the queue :)
What do you think the problem is?
You received this message because you are subscribed to a topic in the Google Groups "rabbitmq-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rabbitmq-users/V8njClbU7GM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--