# Can you use WiFi shield to connect to IDE and MQTT at the same time?

**URL:** <https://forums.openmv.io/t/can-you-use-wifi-shield-to-connect-to-ide-and-mqtt-at-the-same-time/8361>\
**Category:** OpenMV Boards\
**Created:** [May 24, 2023, 6:27pm UTC](https://forums.openmv.io/t/can-you-use-wifi-shield-to-connect-to-ide-and-mqtt-at-the-same-time/8361 "2023-05-24T18:27:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp123](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sp123](https://forums.openmv.io/u/sp123)\
**Post date:** [May 24, 2023, 6:27pm UTC](https://forums.openmv.io/t/can-you-use-wifi-shield-to-connect-to-ide-and-mqtt-at-the-same-time/8361/1 "2023-05-24T18:27:58Z")

</div>

I am using an OpenMV H7 R2 with a wifi shield. For my application, I need to connect to MQTT to publish/subscribe messages to/from other devices. This works well when I am either connected to the IDE via USB or running without the IDE, but it does not work as I had hoped when I connect to the IDE over wifi. As soon as I call wlan = network.WINC(), the IDE disconnects. This makes sense since it is trying to create another connection to the wifi shield. Does anyone know if there is a way to be able to use both at the same time?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 24, 2023, 6:45pm UTC](https://forums.openmv.io/t/can-you-use-wifi-shield-to-connect-to-ide-and-mqtt-at-the-same-time/8361/2 "2023-05-24T18:45:02Z")

</div>

Hi, that interface needs to be updated in the firmware. Right now it doesn’t handle you using the interface for anything other than debug.

(Obviously, it would be nice to be able to debug and use it at the same time - we will be making this all work well moving forward, but, as of right now it’s limited).

---

<div class="post-metadata">

**Author:** ![sp123](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sp123](https://forums.openmv.io/u/sp123)\
**Post date:** [May 24, 2023, 7:04pm UTC](https://forums.openmv.io/t/can-you-use-wifi-shield-to-connect-to-ide-and-mqtt-at-the-same-time/8361/3 "2023-05-24T19:04:20Z")

</div>

Thanks for the quick reply! This is what I suspected, but I wanted to check.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [May 24, 2023, 9:13pm UTC](https://forums.openmv.io/t/can-you-use-wifi-shield-to-connect-to-ide-and-mqtt-at-the-same-time/8361/4 "2023-05-24T21:13:50Z")

</div>

It’s on my todo list. I’ll start cracking on firmware bugs after getting the IDE updated and that back to being modern.
