# Connecting a microcontroller to Ignition over the web - MQTT maybe?

**URL:** <https://forum.inductiveautomation.com/t/connecting-a-microcontroller-to-ignition-over-the-web-mqtt-maybe/65856>\
**Category:** Maker\
**Created:** [October 31, 2022, 4:47am UTC](https://forum.inductiveautomation.com/t/connecting-a-microcontroller-to-ignition-over-the-web-mqtt-maybe/65856 "2022-10-31T04:47:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aharris](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@aharris](https://forum.inductiveautomation.com/u/aharris)\
**Post date:** [October 31, 2022, 4:47am UTC](https://forum.inductiveautomation.com/t/connecting-a-microcontroller-to-ignition-over-the-web-mqtt-maybe/65856/1 "2022-10-31T04:47:28Z")

</div>

In my day job I use Ignition and would like to use maker edition for personal ioT projects at home. I'm trying to figure out how I would run a server in one location and a particle photon microcontroller across the web. I know there are things like mods bus libraries I could use on it if it were local but that would be too much traffic across the web I think and would not perform well. I think MQTT is the answer but I haven't fully grasped it yet. If I understand right I would need an MQTT broker running at the location of my microcontroller to make that work. Is it possible for my photon board to be its own broker to eliminate another piece of hardware to maintain? Or, is there a better way to approach this project without relying on cloud services?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 31, 2022, 9:53am UTC](https://forum.inductiveautomation.com/t/connecting-a-microcontroller-to-ignition-over-the-web-mqtt-maybe/65856/2 "2022-10-31T09:53:05Z")

</div>

No, you want the broker to run in a cloud server of some sort. (I would rent a cheap VPS.) Then the microcontroller publishes to the broker and Ignition subscribes to the broker.

---

<div class="post-metadata">

**Author:** ![aharris](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@aharris](https://forum.inductiveautomation.com/u/aharris)\
**Post date:** [October 31, 2022, 1:59pm UTC](https://forum.inductiveautomation.com/t/connecting-a-microcontroller-to-ignition-over-the-web-mqtt-maybe/65856/3 "2022-10-31T13:59:50Z")

</div>

Ok, thank you. Can I run the broker on a server rather than renting a cloud server?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 31, 2022, 2:05pm UTC](https://forum.inductiveautomation.com/t/connecting-a-microcontroller-to-ignition-over-the-web-mqtt-maybe/65856/4 "2022-10-31T14:05:00Z")

</div>

Yes, but then your server needs to be accessible by Ignition somehow.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [October 31, 2022, 2:12pm UTC](https://forum.inductiveautomation.com/t/connecting-a-microcontroller-to-ignition-over-the-web-mqtt-maybe/65856/5 "2022-10-31T14:12:19Z")

</div>

You can check out [Drouge IoT](https://www.drogue.io/) from RedHat. It is open-source and free to use. They support HTTP, CoAP, MQTT, and Curl I think. They have a community sandbox that you can use without any setup by you. Just install their command line tool. They have REST APIs that you should be able to use to get data into Ignition.

[Golioth IoT](https://golioth.io/) is another one to check into, if you use under 50 devices it's free as well.

---

<div class="post-metadata">

**Author:** ![aharris](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@aharris](https://forum.inductiveautomation.com/u/aharris)\
**Post date:** [October 31, 2022, 2:31pm UTC](https://forum.inductiveautomation.com/t/connecting-a-microcontroller-to-ignition-over-the-web-mqtt-maybe/65856/6 "2022-10-31T14:31:10Z")

</div>

Thanks everyone!
