This tutorial shows how to create a simple node gateway on IBM BlueMix in order to receive sigfox-backend HTTP callback, JSONified and send it to MQTT broker.
Step 1: Create a Node Js Application on IBM Bluemix:
Step 2: Write a simple web service to get parameter in HTTP callback from sigfox-backend server. This information will be encapsulate in MQTT payload and publish to MQTT broker. We can use publish broker provided by Mosquito company at address: ‘mqtt://test.mosquitto.org:8080’.
Step 3: On sigfox-backend site, we define a call back following the form:
Step 4: Create a HTML page subscribe to broker in order to display sigfox’s converted message. We use the Paho JavaScript Client which is a browser-based library to connect to an MQTT server.
Step 5: Open HTML web page after turning on sigfox device, we will see the receiving messages