Repository navigation
BLE Commands
gtls edited this page Oct 29, 2024
·
1 revision
| Command | Message ID | Description |
|---|---|---|
;QA\r\n |
MSG_QUERY_ALL_DATA_IND |
Returns the high and low index of all data in flash memory |
;QP\r\n |
MSG_QUERY_PENDING_DATA_IND |
Returns the high and low index of pending data in flash memory |
;QR\r\n |
MSG_QUERY_RECORD |
Returns a record with the provided index; if the index does not exist, it will NACK |
;QM\r\n |
MSG_QUERY_RECORD_MULTIPLE |
Returns all records within the given indices; NACKs if none exist, otherwise sends existing records |
;QS\r\n |
MSG_QUERY_STATUS |
Returns the status of the slave device |
;QL\r\n |
MSG_QUERY_BATTLEVEL |
Returns the battery level in % |
;QT\r\n |
MSG_QUERY_TEMP |
Returns the ntc temperature |
;QH\r\n |
MSG_QUERY_HUMIDITY |
Returns the relative humidity |
;QO\r\n |
MSG_QUERY_TVOC |
Returns the most recent TVOC reading |
;QC\r\n |
MSG_QUERY_CO2 |
Returns the most recent CO2 reading |
;QU\r\n |
MSG_QUERY_UID |
Returns the unique ID of the slave device |
;QV\r\n |
MSG_QUERY_VERSION |
Returns the version of the slave device |
;QZ\r\n |
MSG_QUERY_ZECLOCK |
Returns the seconds timer of the device |
| Command | Message ID | Description |
|---|---|---|
;CR\r\n |
MSG_COMMAND_REBOOT |
Reboots the device - flashes a white light |
;CF\r\n |
MSG_COMMAND_RESET |
Performs a factory reset and reboots the device |
;CS\r\n |
MSG_COMMAND_RECORD_SYNCED |
Marks the record with the indicated index (if it exists) with the "synced" byte |
;CM\r\n |
MSG_COMMAND_RECORD_SYNCED_MULTIPLE |
Marks all records within the given indices, does nothing if fewer records exist than expected |