Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » How can I fetch stored messages using javascript or PHP(How can I fetch stored messages using javascript or PHP)
How can I fetch stored messages using javascript or PHP [message #1780263] Fri, 19 January 2018 12:08 Go to next message
Srinivas Pokala is currently offline Srinivas PokalaFriend
Messages: 7
Registered: May 2016
Junior Member

We are stored user conversations at location :


So how can I fetch and print those messages using javascript or PHP?

my code:

var client = new Paho.MQTT.Client(host, port, "myClientId" + new Date().getTime());
client.onConnectionLost = onConnectionLost;
client.onMessageArrived = onMessageArrived;
client.onMessageDelivered = onMessageDelivered;
function doFail(responseObject) {
console.log("Connection failed"+responseObject.errorMessage);
function onConnect() {
function onConnectionLost(responseObject) {
if (responseObject.errorCode !== 0) {
function onMessageArrived(message) {

Re: How can I fetch stored messages using javascript or PHP [message #1780862 is a reply to message #1780263] Mon, 29 January 2018 11:04 Go to previous message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 76
Registered: March 2013
If you want to read the Mosquitto database directly, that is a Mosquitto question as to how that database is formatted.
Previous Topic:Constant disconnect because of Connection refused - incorrect protocol version
Next Topic:Publishing Paho mqtt
Goto Forum:

Current Time: Fri Oct 23 03:10:29 GMT 2020

Powered by FUDForum. Page generated in 0.02079 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top