1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! BLE command constants for Aranet devices.
//!
//! This module contains the command bytes used in the Aranet BLE protocol.
/// History V2 request command (read-based protocol).
/// Format: `[HISTORY_V2_REQUEST, param, start_lo, start_hi]`
pub const HISTORY_V2_REQUEST: u8 = 0x61;
/// History V1 request command (notification-based protocol).
/// Format: `[HISTORY_V1_REQUEST, param, start_lo, start_hi, count_lo, count_hi]`
pub const HISTORY_V1_REQUEST: u8 = 0x82;
/// Set measurement interval command.
/// Format: `[SET_INTERVAL, minutes]`
/// Valid minutes: 1, 2, 5, 10
pub const SET_INTERVAL: u8 = 0x90;
/// Enable/disable Smart Home integration command.
/// Format: `[SET_SMART_HOME, enabled]`
/// enabled: 0x00 = disabled, 0x01 = enabled
pub const SET_SMART_HOME: u8 = 0x91;
/// Set Bluetooth range command.
/// Format: `[SET_BLUETOOTH_RANGE, range]`
/// range: 0x00 = standard, 0x01 = extended
pub const SET_BLUETOOTH_RANGE: u8 = 0x92;