refactored reconnection attempts into reconnect method
refactored reconnection attempts into reconnect method

saikiran7949/MakerNode,JulianVolodia/MakerNode,saikiran7949/MakerNode,JulianVolodia/MakerNode,IntelOpenDesign/MakerNode,JulianVolodia/MakerNode,IntelOpenDesign/MakerNode,saikiran7949/MakerNode