add fucntion check connection

add fucntion check connection
Merge branch 'master' of https://github.com/photon-infotech/connect-to-door