edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samantha Chan <chanskw...@gmail.com>
Subject Re: Using Sensor data in my web application
Date Tue, 31 Jan 2017 18:59:30 GMT
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 <ravi_verma1@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.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message