IoT Solution Concept with using Raspberry PI as a Gateway connected to two different WiFi at the same time
When you design IoT solutions there are two methods, you can connect IoT devices directly to the Azure IoT Central or Azure IoT Hub or you can connect it via Gateway.
For a Gateway, you can use a LowCost computer/Controler like a Rasberry Pi. IoT devices can connect to Gateway the following protocols:
- WiFi Internal wlan1
- Bluetooth Lowe Energy
And the more complicated is connecting Gateway to the Azure IoT Hub or Azure IoT Central or any other Service in Cloud. We can use the following:
- WiFi External wlan0
You can use WiFi for both – the same card but a different frequency (2,4 GHz/5 GHz) or just two different WiFi cards.
In case of using two different network cards that allow connecting Raspberry Pi to two different WiFi at the same you must use similar configuration to that one (file /etc/network/interfaces):
root@raspberrypi:~# cat /etc/network/interfaces
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet dhcp
iface wlan1 inet dhcp
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and ‘man dhcpcd.conf’
# Include files from /etc/network/interfaces.d:
PS: As you see this Gateway will be used as a Drone Controller.