We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When adding characteristic with uuid 0x2a29 which is uuid for manufactured name string and other primary services read doesn't work.
0x2a29
Code for service:
fn device_information() -> Service { let (write, mut read) = channel(1); tokio::spawn(async move { while let Some(data) = read.next().await { dbg!(&data); match data { Event::ReadRequest(read) => { read.response .send(Response::Success("WHOOP Inc.".as_bytes().to_owned())) .expect("Error sending"); } Event::WriteRequest(_) => todo!(), Event::NotifySubscribe(_) => todo!(), Event::NotifyUnsubscribe => todo!(), } } todo!(); }); let manufacturer_name_string = Characteristic::new( Uuid::from_sdp_short_uuid(0x2a29 as u32), Properties::new( Some(Read(Secure::Insecure(write.clone()))), None, None, None, ), Some("Whoop Inc.".as_bytes().to_owned()), HashSet::default(), ); let characteristics = [manufacturer_name_string].into_iter().collect(); Service::new( Uuid::from_sdp_short_uuid(0x180A as u32), true, characteristics, ) }
Full code
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When adding characteristic with uuid
0x2a29
which is uuid for manufactured name string and other primary services read doesn't work.Code for service:
Full code
The text was updated successfully, but these errors were encountered: