MQTT broker for personal-heating-manager. Uses Mosca. (http://www.mosca.io/)
- MQTT_PORT (optional) changes the default port MQTT will run
$ mosca adduser <user> <pass> --credentials ./credentials.json
// add a user specifying the authorized topics
$ mosca adduser myuser mypass --credentials ./credentials.json \
--authorize-publish 'hello/*' --authorize-subscribe 'hello/*'
// remove a user
$ mosca rmuser myuser --credentials ./credentials.json
Install node-gyp build tools:
sudo apt-get install node-gyp
On linux you may need to install mosca with admin privileges:
sudo npm install mosca
Loads protobuf definitions from https://github.com/tabman83/phm-messages.git