Sensor devices are now used at any time and every where offering ubiquitous services and leading to a new intelligent environment. This huge number of connected devices constructs a new paradigm called the internet of things (IoT). With the appearance of this new concept, requirements to define robust and scalable protocol stack are growing. Because all these devices should communicate and share the same resources, many research studies focused especially on the definition of a new medium access control layer. This paper studies the evolution of medium access protocols used in wireless sensor networks. Then it focusses especially on the evolution from IEEE802.15.4 to IEEE802.15.4e. An experimental evaluation of This MAC protocol is given using FiT-IoT LAB testbed and the OpenWSN implementation. This evaluation is based on a simple scheduling function in order to allocate resources.