Simulation of priority-driven slotted-Aloha MAC layer of the IEEE 802.15.4 specification