-
Notifications
You must be signed in to change notification settings - Fork 41
client panics when attempting to discover services on connected server #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What version of ESP-IDF are you using? |
Cargo.toml [dependencies]
log = "0.4"
esp-idf-svc = { version = "0.51", features = ["critical-section", "embassy-time-driver", "embassy-sync", "alloc"] }
esp32-nimble = { version = "0.10.2", features = ["std"] }
zerocopy = "0.8.14"
zerocopy-derive = "0.8.14"
anyhow = "1.0.95" |
Could you paste your |
Sorry for the delay
[build]
target = "riscv32imc-esp-espidf"
[target.riscv32imc-esp-espidf]
linker = "ldproxy"
runner = "espflash flash --monitor" # Select this runner for espflash v3.x.x
rustflags = [ "--cfg", "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110
[unstable]
build-std = ["std", "panic_abort"]
[env]
MCU="esp32c3"
# Note: this variable is not used by the pio builder (`cargo build --features pio`)
ESP_IDF_VERSION = "v5.2.2"
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
CRATE_CC_NO_DEFAULTS = "1"
|
Thanks. This error occurs because null checks for pointer dereferences was added in rust 1.86. |
I am curious if this is potentially also an issue for other null pointers in this project? I am running into a inconsistent issue with characteristic notification events triggering let Some(notify_rx) = event.__bindgen_anon_1.notify_rx.as_ref() else {
return 0
}; Sorry if this is way off the mark, I can open a separate issue if this is entirely unrelated. |
@FreeMasen, please open a separate issue. |
After connecting to a server from a client, attempting to call
client.get_service(...)
causes the application to panic withI can see in the logs of both the client and server that they are reporting a successful connection.
Steps to reproduce:
I have two ESP32C3-Devkit-M-1's - I ran the
ble_server
example on one and theble_client
example on the other. I also tested running thesecure_ble_server
/secure_ble_client
examples with the same result.I was also able to produce the same error by setting up a server through the
nRf Connect
app, and running theble_client
example on an ESP32C3.The text was updated successfully, but these errors were encountered: