A few weeks ago, Jon Gallant asked for beta tester for the Azure IoT Platform integration with the Partical platform (Beta Testers Needed for Particle to Azure IoT Integration).
This was great news to me. I have a Photon Azure Starter Kit laying around and I tried once to connect it to the Partical platform.
The kit has potential: it comes with a SparkFun Photon Weather Shield:
And on the shield are already attached:
- Humidity/Temperature Sensor – HTU21D
- Barometric Pressure – MPL3115A2
And it has two RJ-11 connectors for Weather Meters like this one:
But that initial (EventHub?) integration was not quite intuitive and I had more projects to work on. So I moved on.
Now, I had a second chance to make the Photon work!
The first steps are to register your unique Photon device and attach it to the internet (it has a Wifi chip onboard).
If you go to the online IDE, you can write code for your Photon and flash (deploy) it ‘over the air’. This is fun, as long as your Photon is online (wherever it is running), you can contact it using a browser.
The integration tutorial, the blog of Jon Gallant, is very straight forward regarding making an Azure IoT Hub integration. You only need an Azure IoT Hub and a specific access policy. This will help you in sending a string from the Photon to the hub.
Update: Another useful tutorial comes from the Particle site and it shows how to send some integers.
But sending a JSON message is less intuitive.