Set/Query module mode

Command

Response

Parameters

Description

AT+ROLE?

 

+ROLE:<Param>

 

0 Slave

1 Master

Queries the role of the HC-05 Bluetooth module.

 

 

Command

Response

Parameters

Description

AT+ROLE=<Param>

 

OK

 

0 Slave

1 Master

Sets the role of the HC-05 Bluetooth module.

 

Get Mastering Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.