Library for connecting to mobile devices