No reason other than it works therefore we’ve not changed.
I’m open to changing the instructions and potentially upgrading emonSD if there is a compelling reason to do so. What version do you think we should be using?
Sounds good. Have you been reliably using a newer version? I’m struggling to find a change log to see what has been fixed. The old version has been proven to be reliable and stable I only want to update if there is a reason to. Using the ‘official’ version is a compelling reason, lets see what the response is to @Paul issue he opened:
We don’t yet run PHP 7 on emonSD. Again, happy to consider upgrading if there is a reason to. However it seems that PHP7 is not fully supported yet by Mosquitto PHP.
I note this is still picking up the Jessie repo. Is this because this instruction has not been updated or is it deliberate? As mentioned elsewhere, the Stretch version from the mosquitto.org repo does not work out of the box as it has some bad dependencies. I used the package direct from the Debian/Raspbian repo.
I have a Stretch, DietPi install, running Lightppd, MariaDB and PHP7 (I am pretty sure) and it seems to work. I am going to have to check and see what instructions I executed to get it installed though! It might be it was done by DietPi install itself as I don’t remember actually doing it!
It’s deliberate since emonSD still uses Jessie. For the reasons you mention Stretch is still in early days, I’m waiting for it to become more established before switching. Jessie is still LTS with security updates until 2020 so no rush. Stability is the most important thing for emonSD.
Ok, went and had another look and realised it was just the RaspberryPi install instructions that had changed. Just remembered a discussion and thought it was for all instances.
If you want to specify a particular version for the emonSD you would need to use something like mosquitto-0.3.0 rather than the -alpha suffix. I suspect all downloaded/purchased
pre-built emonSD users are on v0.3.0, but any users self-building from the emonSD guide will get v0.4.0 since March 2017, I do not know if that is significant enough to worry about, but we should be mindful that not all users will be on the same release when debugging mqtt I guess.
Looking at the changelog the changes between 0.3.0 and 0.4.0 seem to just support for php7 and some memory leakage fixes so I suspect there is no big reason to push a change.
Answering your question here (on the emonSD thread) rather than on the “Stretch” thread, upgrading should be as easy as rpi-rw and sudo pecl upgrade mosquitto-alpha but I wonder if it’s needed?