What You Need To Start Windows Development For IoT Devices

Just recently I was invited by fellow MVP and Serge Pilko, CEO of Embarcadero tech partner Softacom to discuss Windows development to work with IoT devices. IoT, or “the internet of things” is a hot topic right now. Devices like Arduino and Raspberry Pi have opened up a whole new market of very low-cost devices which can control, sense and record all sorts of things from air pressure to moisture content of soil and can perform all sorts of incredible real-world functions. It’s a beguiling and addictive subject and, as you’ll see in the video, once you start looking into it you may soon find yourself hooked!

How do I get started in IoT Windows development?

Serge and I discuss the basics of what is meant by an IoT device, what does IoT really mean, and what can an IoT device do. I brought along a selection of different IoT devices, ranging from commercial biometric units like fingerprint readers and face scanners to tiny tag-like Bluetooth Low Energy (BLE) tags.

How to program an IoT device and link it to a Delphi program

In the video I show how I program a really cool tiny Arduino-based computer, smaller than my thumb, and then write a short Delphi program to respond to button pushes on that midget computer on my Windows development PC. This all happens with just a few lines of code. It’s the really cool thing about Delphi, how it enables low code Windows development of all sorts of apps.

What sort of IoT devices are shown in the video?

In the video I show a BLE device from Blue Charms which is detected using Delphi’s BLE device scanner sample app.

A BLE tag suitable for Iot Windows development

Serge and I also talked about a really great internet and cloud-connected relay from Shelley. I showed the Shelley 1PM which can be found here. You can get your Delphi app to communicate with the Shelley device either via REST – the Delphi REST Debugger helps a lot with that – or protocols like MQTT and Windows sockets.

What is the Arduino IDE and how can it be used for IoT Windows development?

The real star of the show is the super tiny, smaller than my thumb M5StickCPlus.

IoT Windows development. The M5 C Plus stick

Serge and I talked about quite how amazing this tiny device is and how easy it is to program. It is based on the mighty Arduino system, and you can use the Arduino IDE to send down your own code to it.

How do I make an IoT device talk to a Delphi app?

Once the IoT code, written in embedded C, is sent down to the M5Stick it registers itself on the free to use Mosquitto MQTT server found at http://test.mosquitto.org

I used the MQTT component from Embarcadero tech partner TMS Software to handle the actual technicalities of communicating using the MQTT publish and subscribe protocol. It made it easy and in only a few lines of code I was receiving messages from the IoT device and making it beep every time I pressed the button on the M5Stick. Simple, really. As always, Delphi makes IoT Windows development pretty easy.

Watch the whole IoT Windows development video between Serge and Ian Barker

The whole IoT video can be found here. Ignore the “Baker” on the thumbnail – Serge gets my last name right but throughout my life people seem to want to call me “Baker” instead of “Barker”, they even got it wrong on my marriage license (luckily, we spotted it before my wife accidentally became Mrs Baker instead of Mrs Barker!)

Further reading on Iot Windows development

Download a copy of Delphi today and try out your own IoT Windows development.