Congestion and medium access control in 6LoWPAN WSN