hc05 BLUETOOTH with multi slaves

HI

I found out the way to have a HC05 master communicate with HC05 slaves

first set the master first set the slaves

AT+ROLE=1 // MASTER AT+ROLE=0 // SLAVE

AT+MODE =1 // link any address AT+MODE =1 // link any address

at+uart=38400 at+uart=38400

at+init //init spp at+init //init spp

in my case I've got 2slaves

at+inqm=0,2,48 //0=inquiry mode standard,2= slave number to find,timeout=1,28S*48

in my case 2 slaves found

addr slave1 2014,10,170790

addr slave2 2014,10,170304

then I've done

at+pair=2014,10,170790,20 // ADDR SLAVE1 followed by time out here 20seconds

at+link=2014,10,170790

then send your datas

for joining slave2

HARDWARE RESET MASTER

at+init

at+pair=2014,10,170304,20 // ADDR SLAVE2 followed by time out here 20seconds

at+link=2014,10,170304,20

then send your datas

THATS ALL if that could help someone

ps each command could be upper or lower case and have to end with \n\r

if you question the master or slave no nedd to type ?