An Introduction to Machine-to-Machine Communications