Modular IoT Gateway Reference Design