Skip to content

Commit

Permalink
chore: update esp32-nimble to v0.10.0
Browse files Browse the repository at this point in the history
Signed-off-by: Haobo Gu <[email protected]>
  • Loading branch information
HaoboGu committed Jan 23, 2025
1 parent 8ec8a26 commit dc92b9a
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 21 deletions.
5 changes: 3 additions & 2 deletions examples/use_config/esp32c3_ble/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/use_config/esp32c3_ble/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
rmk = { path = "../../../rmk", features = ["col2row", "esp32c3_ble"] }
esp32-nimble = { version = "0.9", git = "https://github.com/taks/esp32-nimble", rev = "9c33c98" }
esp32-nimble = { version = "0.10" }
defmt = "0.3"
embassy-time = { version = "0.4.0", features = ["defmt", "generic-queue-8"] }
esp-println = { version = "0.13", features = ["esp32c3", "defmt-espflash"] }
Expand Down
5 changes: 3 additions & 2 deletions examples/use_config/esp32c6_ble/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/use_config/esp32c6_ble/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
rmk = { path = "../../../rmk", features = ["col2row", "esp32c6_ble"] }
esp32-nimble = { version = "0.9", git = "https://github.com/taks/esp32-nimble", rev = "9c33c98" }
esp32-nimble = { version = "0.10" }
defmt = "0.3"
embassy-time = { version = "0.4.0", features = ["defmt", "generic-queue-8"] }
esp-println = { version = "0.13", features = ["esp32c6", "defmt-espflash"] }
Expand Down
5 changes: 3 additions & 2 deletions examples/use_config/esp32s3_ble/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/use_config/esp32s3_ble/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
rmk = { path = "../../../rmk", features = ["col2row", "esp32s3_ble"] }
esp32-nimble = { version = "0.9", git = "https://github.com/taks/esp32-nimble", rev = "9c33c98" }
esp32-nimble = { version = "0.10" }
defmt = "0.3"
embassy-time = { version = "0.4.0", features = ["defmt", "generic-queue-8"] }
esp-println = { version = "0.13", features = ["esp32s3", "defmt-espflash"] }
Expand Down
5 changes: 3 additions & 2 deletions examples/use_rust/esp32c3_ble/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/use_rust/esp32c3_ble/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
rmk = { path = "../../../rmk", features = ["col2row", "esp32c3_ble"] }
esp32-nimble = { version = "0.9", git = "https://github.com/taks/esp32-nimble", rev = "9c33c98" }
esp32-nimble = { version = "0.10" }
defmt = "0.3"
embassy-time = { version = "0.4.0", features = ["defmt", "generic-queue-8"] }
esp-println = { version = "0.13", features = ["esp32c3", "defmt-espflash"] }
Expand Down
5 changes: 3 additions & 2 deletions examples/use_rust/esp32c6_ble/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/use_rust/esp32c6_ble/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
rmk = { path = "../../../rmk", features = ["col2row", "esp32c6_ble"] }
esp32-nimble = { version = "0.9", git = "https://github.com/taks/esp32-nimble", rev = "9c33c98" }
esp32-nimble = { version = "0.10" }
defmt = "0.3"
embassy-time = { version = "0.4.0", features = ["defmt", "generic-queue-8", "defmt-timestamp-uptime"] }
esp-println = { version = "0.13", features = ["esp32c6", "defmt-espflash"] }
Expand Down
5 changes: 3 additions & 2 deletions examples/use_rust/esp32s3_ble/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/use_rust/esp32s3_ble/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
rmk = { path = "../../../rmk", features = ["col2row", "esp32s3_ble"] }
esp32-nimble = { version = "0.9", git = "https://github.com/taks/esp32-nimble", rev = "9c33c98" }
esp32-nimble = { version = "0.10" }
defmt = "0.3"
embassy-time = { version = "0.4.0", features = ["defmt", "generic-queue-8"] }
esp-println = { version = "0.13", features = ["esp32s3", "defmt-espflash"] }
Expand Down
2 changes: 1 addition & 1 deletion rmk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ embassy-nrf = { version = "0.3.1", features = [
], optional = true }

# Espressif dependencies
esp32-nimble = { version = "0.9", git = "https://github.com/taks/esp32-nimble", rev = "9c33c98" , optional = true }
esp32-nimble = { version = "0.10", optional = true }
esp-idf-svc = { version = "0.51", default-features = false, optional = true }

# Document feature
Expand Down
5 changes: 3 additions & 2 deletions rmk/src/ble/esp/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ impl HidWriterWrapper for BleHidWriter {

impl HidReaderWrapper for BleHidReader {
async fn read(&mut self, _buf: &mut [u8]) -> Result<usize, HidError> {
self.lock().on_read(|a, _| {
info!("on_read!, {} {=[u8]:#X}", a.len(), a.as_slice());
self.lock().on_read(|characteristic, _conn| {
let v = characteristic.value_mut();
info!("on_read!, {} {=[u8]:#X}", v.len(), v.as_slice());
});
Ok(1)
}
Expand Down

0 comments on commit dc92b9a

Please sign in to comment.