Multi-access edge computing (MEC) is emerging as an effective solution to fulfil the requirements of time-critical Internet of Things (IoT) applications. However, to improve the network efficiency and QoS support of MEC systems, it is essential to jointly optimise edge resource management, IoT data collection and IoT device association in the context of heterogeneous services and edge resources. In this study, we address these challenges by formulating the resource allocation, device association and data routing problem in a multi-cell MEC network as a mixed-integer non-linear programming problem. We also propose a best-fit greedy heuristic method to determine an approximate solution to the optimisation problem for online resource management. Simulation results confirm the effectiveness of the proposed algorithm compared to three alternative benchmarks.