On today’s post we’re going to show you how to connect a Pycom SiPy to thethings.iO. The newest Pycom SiPy supports multiple networks such as Sigfox, Wi-Fi and BLE. The SiPy it’s great for prototyping products for it’s small size, development tools and enormous possibilities. At thethings.iO we worked internally in several projects with the SiPy and we have the first customers prototyping with this board, using thethings.iO IoT platform to collect, visualize and analyze the data.

Configure the Pycom SiPy

Before following the next steps, make sure that you have the required hardware:

Plug your Sipy with the computer using the USB port and connect to its wifi network.

Having opened the code in the Atom IDE, click on Connect down in the Pymakr plugin.

Once the connection is established, Sync the code with the device. Once its send the device will reboot and start running the flashed code.

Connect the Pycom SiPy with thethings.iO IoT platform

Once you have a thethings.iO account, if you don’t have a Sigfox product to use, follow this steps:

Enter to your account and click on Things.

Press on Create new IoT product.

Select Sigfox as Serialisation format.

Give a name and choose Akeru for the board.

Click on the previously created product and copy the subscription URL.

Now it’s time to register thethings.iO Callback at the Sigfox backend. Once you have copied the previous URL, navigate to the Sigfox backend.

Click on your device.

Navigate to callbacks.

Create a new callback. Make sure you choose DATA as the type of callback and UPLINK as the type of service.

Copy the URL inside the URL pattern.

The url should look like this: https://subscription.thethings.io/sgfx/1234/abcdefghijklmn?id={device}&data={data}&radius={radius}&seqNumber={seqNumber}&snr={snr}&time={time}&station={station}&rssi={rssi}&lat={lat}&lng={lng}

Update the sigfox parser at thethings.iO

Back into thethings.iO, move to the cloud code area. You’ll see that a new function called sigfox_parser is created.