Joint optimization of IoT devices access and bandwidth resource allocation for network slicing in edge-enabled radio access networks