Reset device to initial state in disconnect()
Reset device to initial state in disconnect()

Added code to reset the device to the initial state when disconnect() is called. This prevents calls to configured() from returning true when the device has been disconnected.
HeadsUpDisplayInc/mbed,sam-geek/mbed,maximmbed/mbed,geky/mbed,fvincenzo/mbed-os,Shengliang/mbed,andreaslarssonublox/mbed,NXPmicro/mbed,getopenmono/mbed,rgrover/mbed,bulislaw/mbed-os,mnlipp/mbed,FranklyDev/mbed,theotherjimmy/mbed,nabilbendafi/mbed,tung7970/mbed-os-1,DanKupiniak/mbed,monkiineko/mbed-os,Timmmm/mbed,infinnovation/mbed-os,dbestm/mbed,Sweet-Peas/mbed,fpiot/mbed-ats,YarivCol/mbed-os,sam-geek/mbed,arostm/mbed-os,getopenmono/mbed,HeadsUpDisplayInc/mbed,Archcady/mbed-os,mbedmicro/mbed,theotherjimmy/mbed,c1728p9/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,nvlsianpu/mbed,logost/mbed,ryankurte/mbed-os,brstew/MBED-BUILD,hwfwgrp/mbed,fvincenzo/mbed-os,j-greffe/mbed-os,0xc0170/mbed-drivers,nRFMesh/mbed-os,Marcomissyou/mbed,nvlsianpu/mbed,cvtsi2sd/mbed-os,screamerbg/mbed,adamgreen/mbed,kpurusho/mbed,NitinBhaskar/mbed,Archcady/mbed-os,jferreir/mbed,getopenmono/mbed,ryankurte/mbed-os,DanKupiniak/mbed,logost/mbed,bcostm/mbed-os,pbrook/mbed,adustm/mbed,netzimme/mbed-os,naves-thiago/mbed-midi,netzimme/mbed-os,bentwire/mbed,adustm/mbed,c1728p9/mbed-os,HeadsUpDisplayInc/mbed,GustavWi/mbed,bentwire/mbed,screamerbg/mbed,karsev/mbed-os,bikeNomad/mbed,bcostm/mbed-os,rosterloh/mbed,tung7970/mbed-os,hwfwgrp/mbed,mmorenobarm/mbed-os,fahhem/mbed-os,karsev/mbed-os,logost/mbed,jamesadevine/mbed,Willem23/mbed,0xc0170/mbed-drivers,getopenmono/mbed,j-greffe/mbed-os,andcor02/mbed-os,maximmbed/mbed,tung7970/mbed-os,xcrespo/mbed,catiedev/mbed-os,EmuxEvans/mbed,Marcomissyou/mbed,mikaleppanen/mbed-os,FranklyDev/mbed,infinnovation/mbed-os,bentwire/mbed,autopulated/mbed,GustavWi/mbed,nRFMesh/mbed-os,ban4jp/mbed,catiedev/mbed-os,nabilbendafi/mbed,bulislaw/mbed-os,pbrook/mbed,struempelix/mbed,mnlipp/mbed,sam-geek/mbed,nabilbendafi/mbed,infinnovation/mbed-os,andreaslarssonublox/mbed,infinnovation/mbed-os,al177/mbed,mikaleppanen/mbed-os,jferreir/mbed,andcor02/mbed-os,jpbrucker/mbed,alertby/mbed,DanKupiniak/mbed,NordicSemiconductor/mbed,JasonHow44/mbed,rosterloh/mbed,struempelix/mbed,iriark01/mbed-drivers,svogl/mbed-os,logost/mbed,K4zuki/mbed,fanghuaqi/mbed,cvtsi2sd/mbed-os,jeremybrodt/mbed,devanlai/mbed,ban4jp/mbed,c1728p9/mbed-os,NitinBhaskar/mbed,NXPmicro/mbed,mmorenobarm/mbed-os,nRFMesh/mbed-os,monkiineko/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,pedromes/mbed,pi19404/mbed,mbedmicro/mbed,kl-cruz/mbed-os,pedromes/mbed,ryankurte/mbed-os,RonEld/mbed,bremoran/mbed-drivers,masaohamanaka/mbed,RonEld/mbed,K4zuki/mbed,jamesadevine/mbed,pbrook/mbed,larks/mbed,theotherjimmy/mbed,al177/mbed,sg-/mbed-drivers,alertby/mbed,jpbrucker/mbed,EmuxEvans/mbed,Marcomissyou/mbed,masaohamanaka/mbed,screamerbg/mbed,Marcomissyou/mbed,mazimkhan/mbed-os,infinnovation/mbed-os,K4zuki/mbed,larks/mbed,kl-cruz/mbed-os,pradeep-gr/mbed-os5-onsemi,CalSol/mbed,nabilbendafi/mbed,mazimkhan/mbed-os,catiedev/mbed-os,mazimkhan/mbed-os,YarivCol/mbed-os,andcor02/mbed-os,netzimme/mbed-os,rosterloh/mbed,RonEld/mbed,bulislaw/mbed-os,Timmmm/mbed,RonEld/mbed,dbestm/mbed,brstew/MBED-BUILD,NordicSemiconductor/mbed,catiedev/mbed-os,netzimme/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,radhika-raghavendran/mbed-os5.1-onsemi,geky/mbed,struempelix/mbed,Archcady/mbed-os,tung7970/mbed-os-1,Sweet-Peas/mbed,alertby/mbed,nabilbendafi/mbed,bikeNomad/mbed,kjbracey-arm/mbed,arostm/mbed-os,infinnovation/mbed-os,Tiryoh/mbed,pradeep-gr/mbed-os5-onsemi,rosterloh/mbed,c1728p9/mbed-os,betzw/mbed-os,jpbrucker/mbed,bcostm/mbed-os,j-greffe/mbed-os,bulislaw/mbed-os,YarivCol/mbed-os,pi19404/mbed,devanlai/mbed,wodji/mbed,Tiryoh/mbed,Timmmm/mbed,svogl/mbed-os,bcostm/mbed-os,pi19404/mbed,fanghuaqi/mbed,dbestm/mbed,nvlsianpu/mbed,autopulated/mbed,mazimkhan/mbed-os,pradeep-gr/mbed-os5-onsemi,karsev/mbed-os,ARM-software/mbed-beetle,tung7970/mbed-os,catiedev/mbed-os,jpbrucker/mbed,betzw/mbed-os,adustm/mbed,alertby/mbed,JasonHow44/mbed,nRFMesh/mbed-os,GustavWi/mbed,brstew/MBED-BUILD,monkiineko/mbed-os,sam-geek/mbed,iriark01/mbed-drivers,tung7970/mbed-os-1,theotherjimmy/mbed,rgrover/mbed,EmuxEvans/mbed,pedromes/mbed,maximmbed/mbed,kpurusho/mbed,karsev/mbed-os,mmorenobarm/mbed-os,nvlsianpu/mbed,kl-cruz/mbed-os,karsev/mbed-os,svogl/mbed-os,adamgreen/mbed,wodji/mbed,NXPmicro/mbed,Willem23/mbed,andreaslarssonublox/mbed,pbrook/mbed,Shengliang/mbed,kl-cruz/mbed-os,betzw/mbed-os,pradeep-gr/mbed-os5-onsemi,j-greffe/mbed-os,YarivCol/mbed-os,adamgreen/mbed,fanghuaqi/mbed,Timmmm/mbed,pradeep-gr/mbed-os5-onsemi,sg-/mbed-drivers,brstew/MBED-BUILD,fpiot/mbed-ats,fanghuaqi/mbed,wodji/mbed,nRFMesh/mbed-os,svastm/mbed,kl-cruz/mbed-os,xcrespo/mbed,andreaslarssonublox/mbed,EmuxEvans/mbed,Sweet-Peas/mbed,arostm/mbed-os,struempelix/mbed,arostm/mbed-os,pi19404/mbed,mnlipp/mbed,FranklyDev/mbed,bcostm/mbed-os,jrjang/mbed,NordicSemiconductor/mbed,kpurusho/mbed,GustavWi/mbed,mbedmicro/mbed,Willem23/mbed,fpiot/mbed-ats,struempelix/mbed,ARM-software/mbed-beetle,FranklyDev/mbed,andcor02/mbed-os,jrjang/mbed,fahhem/mbed-os,mmorenobarm/mbed-os,jeremybrodt/mbed,betzw/mbed-os,alertby/mbed,Marcomissyou/mbed,al177/mbed,maximmbed/mbed,JasonHow44/mbed,wodji/mbed,tung7970/mbed-os-1,bulislaw/mbed-os,RonEld/mbed,kpurusho/mbed,andcor02/mbed-os,monkiineko/mbed-os,adustm/mbed,hwfwgrp/mbed,jpbrucker/mbed,NXPmicro/mbed,fpiot/mbed-ats,bikeNomad/mbed,rosterloh/mbed,wodji/mbed,Shengliang/mbed,wodji/mbed,bulislaw/mbed-os,getopenmono/mbed,theotherjimmy/mbed,cvtsi2sd/mbed-os,maximmbed/mbed,jeremybrodt/mbed,Sweet-Peas/mbed,larks/mbed,jeremybrodt/mbed,Marcomissyou/mbed,xcrespo/mbed,JasonHow44/mbed,NitinBhaskar/mbed,pbrook/mbed,bikeNomad/mbed,mnlipp/mbed,pbrook/mbed,screamerbg/mbed,devanlai/mbed,svastm/mbed,NordicSemiconductor/mbed,devanlai/mbed,maximmbed/mbed,JasonHow44/mbed,EmuxEvans/mbed,c1728p9/mbed-os,Tiryoh/mbed,masaohamanaka/mbed,dbestm/mbed,jamesadevine/mbed,rgrover/mbed,kjbracey-arm/mbed,pi19404/mbed,rgrover/mbed,Timmmm/mbed,jferreir/mbed,hwfwgrp/mbed,ryankurte/mbed-os,JasonHow44/mbed,geky/mbed,naves-thiago/mbed-midi,naves-thiago/mbed-midi,xcrespo/mbed,screamerbg/mbed,radhika-raghavendran/mbed-os5.1-onsemi,sam-geek/mbed,betzw/mbed-os,brstew/MBED-BUILD,bentwire/mbed,Shengliang/mbed,Archcady/mbed-os,devanlai/mbed,HeadsUpDisplayInc/mbed,pedromes/mbed,ryankurte/mbed-os,arostm/mbed-os,cvtsi2sd/mbed-os,mnlipp/mbed,fahhem/mbed-os,geky/mbed,mbedmicro/mbed,ryankurte/mbed-os,jrjang/mbed,CalSol/mbed,jrjang/mbed,fvincenzo/mbed-os,Willem23/mbed,adamgreen/mbed,fpiot/mbed-ats,catiedev/mbed-os,masaohamanaka/mbed,mikaleppanen/mbed-os,kl-cruz/mbed-os,autopulated/mbed,mmorenobarm/mbed-os,bcostm/mbed-os,jpbrucker/mbed,ARM-software/mbed-beetle,fanghuaqi/mbed,mikaleppanen/mbed-os,masaohamanaka/mbed,tung7970/mbed-os,brstew/MBED-BUILD,YarivCol/mbed-os,arostm/mbed-os,naves-thiago/mbed-midi,karsev/mbed-os,Sweet-Peas/mbed,jrjang/mbed,larks/mbed,geky/mbed,xcrespo/mbed,svastm/mbed,pedromes/mbed,mmorenobarm/mbed-os,jferreir/mbed,fahhem/mbed-os,bentwire/mbed,adustm/mbed,logost/mbed,j-greffe/mbed-os,hwfwgrp/mbed,monkiineko/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,Willem23/mbed,kpurusho/mbed,bikeNomad/mbed,DanKupiniak/mbed,NitinBhaskar/mbed,kpurusho/mbed,CalSol/mbed,naves-thiago/mbed-midi,mazimkhan/mbed-os,nabilbendafi/mbed,jrjang/mbed,al177/mbed,naves-thiago/mbed-midi,j-greffe/mbed-os,nvlsianpu/mbed,mikaleppanen/mbed-os,radhika-raghavendran/mbed-os5.1-onsemi,Shengliang/mbed,pi19404/mbed,NitinBhaskar/mbed,adamgreen/mbed,ban4jp/mbed,getopenmono/mbed,mikaleppanen/mbed-os,YarivCol/mbed-os,jamesadevine/mbed,Tiryoh/mbed,andreaslarssonublox/mbed,RonEld/mbed,Sweet-Peas/mbed,bremoran/mbed-drivers,masaohamanaka/mbed,Tiryoh/mbed,jferreir/mbed,Shengliang/mbed,bentwire/mbed,nvlsianpu/mbed,cvtsi2sd/mbed-os,cvtsi2sd/mbed-os,Archcady/mbed-os,pedromes/mbed,nRFMesh/mbed-os,svogl/mbed-os,jferreir/mbed,svogl/mbed-os,HeadsUpDisplayInc/mbed,monkiineko/mbed-os,netzimme/mbed-os,fvincenzo/mbed-os,mbedmicro/mbed,struempelix/mbed,jamesadevine/mbed,K4zuki/mbed,xcrespo/mbed,NXPmicro/mbed,CalSol/mbed,adamgreen/mbed,tung7970/mbed-os,tung7970/mbed-os-1,hwfwgrp/mbed,Archcady/mbed-os,Tiryoh/mbed,pradeep-gr/mbed-os5-onsemi,CalSol/mbed,adustm/mbed,ban4jp/mbed,EmuxEvans/mbed,screamerbg/mbed,fahhem/mbed-os,jamesadevine/mbed,jeremybrodt/mbed,dbestm/mbed,fpiot/mbed-ats,al177/mbed,ban4jp/mbed,CalSol/mbed,svogl/mbed-os,svastm/mbed,rgrover/mbed,GustavWi/mbed,fvincenzo/mbed-os,mnlipp/mbed,K4zuki/mbed,betzw/mbed-os,theotherjimmy/mbed,netzimme/mbed-os,ARM-software/mbed-beetle,ban4jp/mbed,K4zuki/mbed,alertby/mbed,al177/mbed,devanlai/mbed,kjbracey-arm/mbed,autopulated/mbed,Timmmm/mbed,c1728p9/mbed-os,FranklyDev/mbed,larks/mbed,HeadsUpDisplayInc/mbed,larks/mbed,mazimkhan/mbed-os,dbestm/mbed,logost/mbed,autopulated/mbed,autopulated/mbed,fahhem/mbed-os,NXPmicro/mbed,svastm/mbed,rosterloh/mbed