<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><description>HELLO EVERYONE!!!! After many struggles I have managed to get websockets working with mosquitto on my RPi 2 (Thanks element 14 for this baby). I decided to start from scratch, so I wiped the SD card and reinstalled Raspbian. I honestly had ...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><pubDate>Mon, 04 Sep 2017 17:52:50 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb28dde4-7011-4d0a-bf82-78d25e5245e8</guid><dc:creator>derehrler</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Made an Account just to say thank you so much. &lt;/p&gt;&lt;p&gt;I was extremly frustrated and have tried everything, but finally, Paho works. Thank you.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=21153&amp;AppID=119&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><pubDate>Fri, 03 Jun 2016 14:10:36 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb28dde4-7011-4d0a-bf82-78d25e5245e8</guid><dc:creator>Former Member</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello from June 2016. The tutorial still works with some corrections (I&amp;#39;m running an up-to-date Raspbian GNU/Linux 7 (wheezy) on RPi2):&lt;/p&gt;&lt;p&gt;1) Apt-get was &amp;quot;Unable to locate package openssl-dev&amp;quot;, and this problem at the very first step nearly broke my will to continue... After some research I&amp;#39;ve installed &amp;quot;libssl-dev&amp;quot; - it seems, that the package was just renamed:&lt;/p&gt;&lt;p&gt;&lt;em&gt;root@rpi2:~# apt-get install libssl-dev&lt;/em&gt;&lt;/p&gt;&lt;p&gt;2) If you gonna test mosquitto under root, you have to add line &amp;quot;user root&amp;quot; into /etc/mosquitto.conf. By default mosquitto should be run from /etc/init.d under user &amp;quot;mosquitto&amp;quot; and it&amp;#39;s working directory must be /etc/mosquitto.&lt;/p&gt;&lt;p&gt;3) To publish messages by means of &amp;quot;mosquitto_pub&amp;quot; command, you need more symlinks:&lt;/p&gt;&lt;p&gt;&lt;em&gt;root@rpi2:~# ln -s /usr/local/lib/libmosquitto.so.1 /usr/lib/libmosquitto.so.1&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Now the following command will send message to client&amp;#39;s web browser:&lt;/p&gt;&lt;p&gt;&lt;em&gt;root@rpi2:~# mosquitto_pub -u username -P password -t /World -m &amp;quot;test message from shell&amp;quot;&lt;/em&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=21153&amp;AppID=119&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><pubDate>Sun, 23 Aug 2015 21:00:41 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb28dde4-7011-4d0a-bf82-78d25e5245e8</guid><dc:creator>balearicdynamics</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Finally I had the time to read all this post. Sounds a good tutorial, very nice Margot !&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Enrico&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=21153&amp;AppID=119&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><pubDate>Sun, 23 Aug 2015 17:40:09 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb28dde4-7011-4d0a-bf82-78d25e5245e8</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice detailed post Margot.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Well done.&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=21153&amp;AppID=119&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><pubDate>Sun, 23 Aug 2015 07:33:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb28dde4-7011-4d0a-bf82-78d25e5245e8</guid><dc:creator>amgalbu</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Margot&lt;/p&gt;&lt;p&gt;Nice tutorial. I always spent some time trying to make Mosquito work over OpenSSL. How did you created and installed certificates on both client and server?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ambrogio&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=21153&amp;AppID=119&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><pubDate>Sun, 16 Aug 2015 16:21:01 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb28dde4-7011-4d0a-bf82-78d25e5245e8</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Very nice and compact!&lt;/p&gt;&lt;p&gt;Been going through similar process to get Mosquitto up running, but this is by far the most complete ´script´ I have seen.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To get this running as a service, have a look at last part of &lt;a class="jive-link-external-small" href="https://harizanov.com/wiki/wiki-home/raspberry-pi/how-to-rasbperry-pi-install-mosquitto-with-websockets-enable/" rel="nofollow ugc noopener" target="_blank" title="https://harizanov.com/wiki/wiki-home/raspberry-pi/how-to-rasbperry-pi-install-mosquitto-with-websockets-enable/"&gt;https://harizanov.com/wiki/wiki-home/raspberry-pi/how-to-rasbperry-pi-install-mosquitto-with-websockets-enable/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This worked for me.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=21153&amp;AppID=119&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><pubDate>Mon, 22 Jun 2015 06:19:55 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb28dde4-7011-4d0a-bf82-78d25e5245e8</guid><dc:creator>fvan</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Very nice guide, well done!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=21153&amp;AppID=119&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: PizzaPi: Mosquitto + Websockets SUCCESS (Tutorial)!</title><link>https://community.element14.com/challenges-projects/design-challenges/sci-fi-your-pi/b/blog/posts/pizzapi-mosquitto-websockets-success-tutorial</link><pubDate>Mon, 22 Jun 2015 06:18:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bb28dde4-7011-4d0a-bf82-78d25e5245e8</guid><dc:creator>balearicdynamics</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Useful and complete. Bookmared, will be used in future.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you. Enrico&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=21153&amp;AppID=119&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>