Go to advanced search

by mbajlo00
Tue Dec 22, 2015 9:24 am
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

The benefit should be that you don't need two separate clients(one for local and one for remote broker) You just bridge local to remote remote broker, and if somehow you loose internet access you'll still have local broker working, as it should. Only remote broker client won't have access to the loc...
by mbajlo00
Sun Dec 13, 2015 7:10 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

Did somebody succeed to bridge local mosquitto to some remote broker on cloud, if yes, which remote broker was used?
I would like to use some of IOTF like IBM IOTF but there is pricing involved, so I'm not sure about that.
by mbajlo00
Fri Dec 11, 2015 12:00 am
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I don't know what happend with lost posts, I haven't even seen them. Can you post those again please?
by mbajlo00
Tue Dec 08, 2015 4:11 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I've checked with cloudmqtt and they say everything should be fine. I have looked into log file and there is a line that says mosquitto version 1.3.5 (build date 2014-10-18 21:06:44+0100) start$ and when I try mosquitto --version in terminal I get: unknown option 'mosquitto --version mosquitto versi...
by mbajlo00
Thu Dec 03, 2015 8:15 am
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

No problem, I meant that I've overseen something, so the bridge configuration should be ok?
by mbajlo00
Wed Dec 02, 2015 11:17 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I tought about that, but from what I've had read in the documentation of cloudmqtt there is no word about RabbitMQ, where have you found that? These are the links that provided documenation of cloudmqtt and where i've found how to bridge mosquitto: https://www.cloudmqtt.com/docs.html http://e.veryth...
by mbajlo00
Wed Dec 02, 2015 3:52 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

CloudMQTT are managed Mosquitto servers in the cloud. Mosquitto implements the MQ Telemetry Transport protocol, MQTT, which provides lightweight methods of carrying out messaging using a publish/subscribe message queueing model. I've made an account on CloudMQTT and used creditentials that are prov...
by mbajlo00
Wed Dec 02, 2015 12:46 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I've found out why I'me getting this error, its because mosquitto starts at startup and already using port 1883, so that is solved.
But there is still no bridge between local mosquitto and remote cloudmqtt broker, any ideas why?
by mbajlo00
Wed Dec 02, 2015 11:32 am
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I've solved some of the problems, but now when I try to see mosquitto log by writing:

Code: Select all

mosquitto
in terminal, I get this:
log.gif
mosquitto log
log.gif (4.37 KiB) Viewed 6030 times
my mosquitto.conf file looks like this:
mosquitto_conf.gif
mosquitto.conf
mosquitto_conf.gif (11 KiB) Viewed 6030 times
what means

Code: Select all

ERROR: Address already in use
in mosquitto log?
by mbajlo00
Mon Nov 30, 2015 11:08 am
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I wrote a java client, and it works without problem if don't bridge brokers, but after bridging it gave me this error: excep Unable to connect to server (32103) - java.net.ConnectException: Connection refused: connect Unable to connect to server (32103) - java.net.ConnectException: Connection refuse...
by mbajlo00
Sun Nov 29, 2015 4:05 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I connected my local client to the local network, just like I use to before bridging. In a mattter of fact bidging two brokers is the only change I've made. I'm using ESP8266 as a client programmed in arduino IDE and using pubsub library which supports only qos= 0. The problem is that local client i...
by mbajlo00
Sat Nov 28, 2015 7:10 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I configured mosquitto.conf file connection cloudmqtt try_private false address broker.cloudmqtt.com:port start_type automatic username your_username_here password your_password_here clientid any_clientid_here notifications true Now cloudmqtt broker and local mosquitto broker are getting the same me...
by mbajlo00
Sat Nov 28, 2015 2:22 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

Thanks, I will try that ;)
by mbajlo00
Fri Nov 27, 2015 6:18 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

Hi, me again. Is it possible to connect one client to two brokers, in example one broker is local mosquitto and another is remote Cloudmqtt broker?
These two brokers are totally independent and this client should be able to publish and subscribe to certain topics.
by mbajlo00
Wed Oct 28, 2015 12:17 am
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

The attachment apt-cache search mosquitto.gif is no longer available
by mbajlo00
Wed Oct 28, 2015 12:12 am
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I already tried pip-3.2 (since i get error unable when try to instal pip) install paho-mqtt which returns: Requrement already satisfied(use --upgrade to upgrade) : paho -mqtt in /usr/local/lib/python3.2/dist-packages Cleaning up... and when I try apt-cache search mosquitto , I'm missing python3-mosq...
by mbajlo00
Tue Oct 27, 2015 10:39 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

Hi, I'm trying to connect raspberry pi to Cloudmqtt.com cloud. I made an account there and using their documentation to make a client, for now it's the same client as is shown here: https://www.cloudmqtt.com/docs-python.html the problem is when I try to run python script with python3, I got Importan...
by mbajlo00
Sun Oct 18, 2015 9:12 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

sorry, I made a foolish mistake, in client code I used:

Code: Select all

String broker = "tcp:IPadress:1883";
but correct way is to use:

Code: Select all

String broker = "tcp://IPadress:1883";
Thank you so much for your help ;)
by mbajlo00
Sun Oct 18, 2015 8:56 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I'm opened port 1883 in my firewall, and I tried to send some message again but I get the same errors in eclipse. I'm checking if something went through in the terminal using the

Code: Select all

mosquitto_sub -d -t tema
by mbajlo00
Sun Oct 18, 2015 6:41 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

can you tell me what means
ping -c3 8.8.8.8
ping -c3 $(ip route | awk '/default/ {print $3}')
ifconfig -a
ip route
by mbajlo00
Sun Oct 18, 2015 6:38 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

I can ping Ri through ma PC and I can ping PC via Rpi. I've found IP adress of my Rpi over Fing (mobile app), but when I use net view in cmd there is no Rpi.
After using

Code: Select all

if config -a
ip route
ping -c3 $(ip route | awk '/default/ {print $3}')
ping -c3 8.8.8.8
ping -c3 google.com
I get this:
by mbajlo00
Sun Oct 18, 2015 1:45 pm
Forum: Troubleshooting
Topic: Getting Mosquitto to work on Raspberry Pi
Replies: 64
Views: 53691

Re: Getting Mosquitto to work on Raspberry Pi

Hi, I'm trying to talk to mosquitto broker on my raspberry pi via java client written on my PC (windows 8.1), I'have already installed libmosquitto1, mosquitto, mosquitto-clients, python-mosquitto & python3-mosquitto. When I use terminal window for subscribing and publishing using: mosquitto_sub -d ...
by mbajlo00
Fri Mar 27, 2015 9:40 pm
Forum: Networking and servers
Topic: Acces MySQL DB via web service
Replies: 13
Views: 3947

Re: Acces MySQL DB via web service

Hi me again, I trying whole afternoon to make .jar lib from source code:

Code: Select all

https://github.com/eclipse/paho.mqtt.java
Does there is some tutorial, or something to help me make lib, because without that lib I won't be able to make mqtt client.

thanks
by mbajlo00
Tue Mar 17, 2015 12:28 am
Forum: Networking and servers
Topic: Acces MySQL DB via web service
Replies: 13
Views: 3947

Re: Acces MySQL DB via web service

Thanks asandford, I'll take a look on that;) Dougie I meant is there any explanation about functions and objects used, what they mean, I would like to understand, I know that pub publishes to the broker and sub subscribes but why is in C++ is used pointer, why there is a parameter false and 0, that ...
by mbajlo00
Mon Mar 16, 2015 3:38 pm
Forum: Networking and servers
Topic: Acces MySQL DB via web service
Replies: 13
Views: 3947

Re: Acces MySQL DB via web service

Hi again ;) I'm studying mqtt clients ( C++ and JAVA in particular because I used to them), whole this thing looks really interested. But problem is I haven't found any explanations for the functions used in examples. C++: https://eclipse.org/paho/clients/cpp/ JAVA: https://eclipse.org/paho/clients/...

Go to advanced search