[squeak-dev] MQTT for Squeak?

Göran Krampe goran at krampe.se
Mon Oct 24 07:57:53 UTC 2016


On 10/24/2016 02:18 AM, tim Rowledge wrote:
> I’m having all sorts of fun making some weather station and
> environmental sensors with assorted Pi and ESP8266 boards and I need
> a nice way to make the sensor nodes report back to base. Since the
> ESP8266 modules don’t run squeak (shame!) I’m using Arduino-c++
> (blech) on them, and since the weather sensor code already existed in
> python (double-blech) I’m using that on the weather-pi board. I’ve
> been recommended to look at MQTT as a way to bind them all together
> and from what little sense I can make of the assorted stuff that
> googling had lead me to (good grief, so much acronym laden gibberish)
> it looks like it might do the job.

MQTT is indeed a very good easy protocol, it's simply publish/subscribe 
on topics - but it's designed for low bandwidth and IoT etc. I have 
written some articles on using MQTT with our Evothings (where I work) 
tool (making Cordova mobile apps using js).

> Googling for a squeak mqtt package has revealed nothing thus far so
> I’m now appealing to the list for any news.

Mmm, I haven't hacked up an MQTT library - BUT... I did hack up a NATS 
library just a few weeks back.

There are several open source MQTT servers around (VerneMQ is nice) that 
are easy to fire up - and you also have WebSockets support (we use the 
Paho library).

Perhaps you could port Paho? Not sure if the code is nice enough to read.

regards, Göran

More information about the Squeak-dev mailing list