User Manual

Table Of Contents
Appendix 143
Mailbox Command References
WAGO-I/O-SYSTEM 750
I/O Modules
6.3.5.20 Read Role of the Local Device (GetLocalDeviceRole, 0x55)
This command queries the role of the local Bluetooth
®
module in the piconet
(master or slave).
Conditions
Mailbox size Operating mode/profile Device role
6 12 18 Config.
Real-
time
Ad hoc Master Slave
Save
config.
Restart
- -
Request
Byte 2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
0 MBX_GETLOCALDEVICEROLE
1 T -
Response
Byte 2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
0 MBX_GETLOCALDEVICEROLE
1 T MBX_CMD_RESULT
2 MBX_DEVICE_ROLE
Return values
Parameter Value Description
MBX_ROLE_COORDINATOR(0x01) Device role of master
reserved (0x02) Reserved
MBX_DEVICE_ROLE
MBX_ROLE_ENDDEVICE (0x03) Device role of slave