I built the app you are talking about so probably can help.
If you use the mqtt connector update on github.com https://github.com/ako/MqttClient/blob/master/readme.md
You can connect to ibm watson iot. The sensors connects to send data to watson and then the mendix app subscribes to the watson iot.
You need either a connector like ibm watson or a java client for bluemix.