Device State Indication
1. Format
+DEVSTAT=Param → Param: A base-10 representation of a bit field, for each bit
BIT[4] | BIT[3] | BIT[2] | BIT[1] | BIT[0] |
0/1 | 0/1 | 0/1 | 0/1 | 0/1 |
BIT | Value | Indication |
BIT[4] | 0 | BLE Non Scanning |
1 | BLE Scanning | |
BIT[3] | 0 | BR/EDR Non Scanning |
1 | BR/EDR Scanning | |
BIT[2] | 0 | BLE Non-advertising |
1 | BLE Advertising | |
BIT[1] | 0 | BR/EDR Non-discoverable |
1 | BR/EDR Discoverable | |
BIT[0] | 0 | Power Off |
1 | Power On |
2. Example
+DEVSTAT=7 → Module is power on, discoverable and advertising
Base 10 “7” is “00111” by binary expression.
BIT[4] | BIT[3] | BIT[2] | BIT[1] | BIT[0] |
0 | 0 | 1 | 1 | 1 |
BIT | Value | Indication |
BIT[4] | 0 | BLE Non Scanning |
1 | BLE Scanning | |
BIT[3] | 0 | BR/EDR Non Scanning |
1 | BR/EDR Scanning | |
BIT[2] | 0 | BLE Non-advertising |
1 | BLE Advertising | |
BIT[1] | 0 | BR/EDR Non-discoverable |
1 | BR/EDR Discoverable | |
BIT[0] | 0 | Power Off |
1 | Power On |