You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by Ravi Verma <ra...@persistent.com> on 2017/01/31 08:51:50 UTC

Using Sensor data in my web application

Hi,


I am new to Apache Edgent. I am creating an application which is subscribed as Mqtt client to receive sensor data. I am able to get sensor data from Mqtt Broker.


Now I want to write an web application which can display these sensor data.


Please suggest some ways of doing the same.



Thanks a lot.

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.


Re: Using Sensor data in my web application

Posted by Samantha Chan <ch...@gmail.com>.
Hi,

I think there are a few ways of doing this.

You can pull data directly from the MQTT Broker using the MQTT JS library.
In this case, you can get the data on your web page and display it.

You can check out the MQTT Javascript client library here:
https://eclipse.org/paho/clients/js/

Alternatively, if you have a web server, you can use the MQTT java API or
Node JS API to get the data onto your web server.  And then your web page
can get the sensor data from your web server.

I found MQTT NodeJS API here:
https://www.npmjs.com/package/mqtt

The Java API can be found here:
https://eclipse.org/paho/clients/java/

Hope this helps!

Samantha

On Tue, Jan 31, 2017 at 3:51 AM, Ravi Verma <ra...@persistent.com>
wrote:

> Hi,
>
>
> I am new to Apache Edgent. I am creating an application which is
> subscribed as Mqtt client to receive sensor data. I am able to get sensor
> data from Mqtt Broker.
>
>
> Now I want to write an web application which can display these sensor data.
>
>
> Please suggest some ways of doing the same.
>
>
>
> Thanks a lot.
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential information which is
> the property of Persistent Systems Ltd. It is intended only for the use of
> the individual or entity to which it is addressed. If you are not the
> intended recipient, you are not authorized to read, retain, copy, print,
> distribute or use this message. If you have received this communication in
> error, please notify the sender and delete all copies of this message.
> Persistent Systems Ltd. does not accept any liability for virus infected
> mails.
>
>