Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Fw: MQTTlens

Hi Dave,

thanks for the feedback :)

Am 27.08.2014 um 16:03 schrieb Dave Locke <locke@xxxxxxxxxx>:

Hi Sandro,
had chance to play around a little more with it - a great piece of work!

A couple of suggestions:
  • Once a connection has been configured would be neat if it can ee stored across restart of the app?  This would save re-entering it each time.
Yes that is on the list, I will create a list of features that are planned
  • Is there a way to manually disconnect and then reconnect ?
Currently there is no direct way to disconnect and reconnect, I am using MQTT.js to create and connect to the broker. The only way to stop the created mqtt connection is the end() method, which will also remove all subscriptions at the broker. I could recreate the connections and then add all subscriptions. 
  • Once a connection has been configured there is no way to change the address (hostname) of the server.   This is a problem if the incorrect address is entered and needs to be corrected


Thanks for pointing this out. I am going to change this so that you can indeed change the hostname if the connection is not connected

All the best
Dave

 
----- Forwarded by Dave Locke/UK/IBM on 27/08/2014 14:42 -----

From:        Dave Locke/UK/IBM
To:        General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Date:        26/08/2014 09:36
Subject:        Re: [paho-dev] MQTTlens




Hi Paul,
just tried iot.eclipse.org  with tcp and it worked a treat for me - maybe its firewall problems?


All the best
Dave

 



From:        Paul Fremantle <paul.fremantle@xxxxxxxxxx>
To:        General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Date:        26/08/2014 09:17
Subject:        Re: [paho-dev] MQTTlens
Sent by:        paho-dev-bounces@xxxxxxxxxxx





Sandro

I'm probably being stupid but I can't seem to get it to connect to iot.eclipse.org or test.mosquitto.org.

Any hints?

Paul


On 25 August 2014 19:38, Sandro Kock <sandro.kock@xxxxxxxxx> wrote:
 <Mail-Anhang.png>

Hey everyone,

I would like to introduce you to MQTTlens a Chrome App for testing MQTT communication scenarios I worked on for the GSoC. The packaged Chrome App is now available in the Google Chrome Web store at [1]. 

<Mail-Anhang.png>

 

Once installed it can be used like any other native OS application. Through the chrome socket API, the application is able to support MQTT connections via TCP and WebSockets. Currently the application supports the concurrent connections to multiple MQTT-Brokers (1), the publication of messages to any topic and of curse the subscriptions to topics. If the message payload is recognized as a JSON object it is pretty printed like shown in (2)

<Mail-Anhang.png> 

<Mail-Anhang.png>

So please go ahead and give it a try. If you have any feedback (positive or negative) I am happy to hear it.

MQTTlens is build with Polymer.js [2] – a polyfill library that makes it possible to create custom HTML elements. These custom elements can be in included into any web application to provide a custom functionality, like an AJAX request or a MQTT connection.  Even though the MQTTlens application is a single HTML element, including it into an application would not make too much sense, but adding a MQTT-Connection to one would. If you like to have a look at the mqtt-connection element I created within the project, it is available on github at [3] and can be included into any web application via bower: 

0. Install bower If not installed

npm install bower -g

1. Run the following command with in the web application directory

bower install sandro-k/mqtt-connection –save

2. Add theses two lines to your application

<script src=""></script>

<link rel="import" href=""/> 

3. Instantiate the DOM element

<mqtt-connection></ mqtt-connection>

A detailed demo usage of the mqtt-connection is available at [4]. I will continue working on this in my spare time to improve the MQTTlens app and the usability of the mqtt-connection element. If you have any questions or ideas how anything of this could be improved please contact me, I am happy to help.

Last but not least, I think MQTTLens and all its sub-projects would be a great contribution to the Paho project and I would be happy to contribute it to the community.    

Happy MQTTing,

Sandro 

[1] https://chrome.google.com/webstore/detail/mqttlens/hemojaaeigabkbcookmlgmdigohjobjm

[2] http://www.polymer-project.org/

[3] https://github.com/sandro-k/mqtt-connection/

[4] https://github.com/sandro-k/mqtt-connection/blob/master/demo.html

_______________________________________________
paho-dev mailing list

paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/paho-dev



--
Paul Fremantle
Part-time PhD student - School of Computing
email: paul.fremantle@xxxxxxxxxx, paul@xxxxxxxxxxxxx
twitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair, Apache Member
07740 199 729
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



Back to the top