Comment some network functions and add some error checking.
Comment some network functions and add some error checking.

tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto,tempbottle/mosquitto