It looks like the raspberry pi version of the mosquitto broker only supports MQTT 3.1 (3) whereas the gateway uses MQTT 3.1.1 (4). Could you update your MQTT broker on the raspberry pi to the latest version and try again.
I believe this link will provide you the instructions for upgrading your broker on the pi:
http://mosquitto.org/2013/01/mosquitto-debian-repository/