rpi2mqtt
rpi2mqtt copied to clipboard
message is a Buffer, so needs toString.
Also made it a bit more obvious in debug when the message fails to parse, as I spent a while trying to figure out why the GPIO would only ever switch on, regardless of message.