Skip to content

Commit

Permalink
Merge pull request #47 from Sensirion/update-sen5x-examples
Browse files Browse the repository at this point in the history
Update SEN5x examples & Pin NimBLE Lib Version & Improve Download Stability
  • Loading branch information
LeonieFierz authored Dec 12, 2024
2 parents d6831d7 + 5ea107b commit 9e78af1
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 17 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [1.4.0] - 2024-12-12

### Added
- Allow to request only the last X samples when doing a data download (implement Requested Samples Characterisitc on Download Service)

### Fixed
- use the last 2 Bytes of Mac Address as Device ID in BLE Advertisment (fixes mismatch of logged id and id appearing in MyAmbience as mentiond in https://github.com/Sensirion/arduino-ble-gadget/issues/44)
- pin version of NimBLE lib to < 2.0.0 as 2.0.0 is not a proper release and breaks writing to BLE Characteristics

### Changed
- increased delay in loop to avoid that data packs are sent too fast during data download

## [1.3.2] - 2024-06-19

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,13 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}

void measure_and_report() {
uint16_t error;
char errorMessage[256];

delay(1000);

// Read Measurement
float massConcentrationPm1p0;
float massConcentrationPm2p5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,13 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}

void measure_and_report() {
uint16_t error;
char errorMessage[256];

delay(1000);

// Read Measurement
float massConcentrationPm1p0;
float massConcentrationPm2p5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}

void measure_and_report() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}

void measure_and_report() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,5 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void loop() {
}

provider.handleDownload();
delay(3);
delay(20);
}

void measure_and_report() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void loop() {

provider.handleDownload();
handleFrcRequest();
delay(3);
delay(5);
}

void measureAndReport() {
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Sensirion Gadget BLE Arduino Lib
version=1.3.2
version=1.4.0
author=Bjoern Muntwyler, Jonas Stolle
maintainer=Sensirion AG <sensirion.com>
sentence=Library for BLE communication between BLE Gadgets and the MyAmbience app.
Expand All @@ -8,4 +8,4 @@ category=Communication
url=https://github.com/Sensirion/arduino-ble-gadget
architectures=esp32
includes=Sensirion_Gadget_BLE.h
depends=Sensirion Core, NimBLE-Arduino, Sensirion UPT Core
depends=Sensirion Core, NimBLE-Arduino (<2.0.0), Sensirion UPT Core (>0.5.1)

0 comments on commit 9e78af1

Please sign in to comment.