Added some preliminary code to test socket connection to pi