Skip to content

Commit acdae59

Browse files
committed
Updating ESP32 firmware to sending rate of 1-2s
This is done to save energy
1 parent 880f135 commit acdae59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/ESP32/main/openhaystack_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ static esp_ble_adv_params_t ble_adv_params = {
4343
// Minimum advertising interval for undirected and low duty cycle
4444
// directed advertising. Range: 0x0020 to 0x4000 Default: N = 0x0800
4545
// (1.28 second) Time = N * 0.625 msec Time Range: 20 ms to 10.24 sec
46-
.adv_int_min = 0x00A0, // 100ms
46+
.adv_int_min = 0x0640, // 1s
4747
// Advertising max interval:
4848
// Maximum advertising interval for undirected and low duty cycle
4949
// directed advertising. Range: 0x0020 to 0x4000 Default: N = 0x0800
5050
// (1.28 second) Time = N * 0.625 msec Time Range: 20 ms to 10.24 sec
51-
.adv_int_max = 0x0140, // 200ms
51+
.adv_int_max = 0x0C80, // 2s
5252
// Advertisement type
5353
.adv_type = ADV_TYPE_NONCONN_IND,
5454
// Use the random address

0 commit comments

Comments
 (0)