You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing this, I really liked to try out your work, and sorry in advance if this is a silly question.
In your example you just have a single service and a single characteristic, and you use default to get an instance of the characteristic.
But I tried to return multiple characteristics and that fails when using the example:
implTestService{fn get_characteristics(&self) -> Vec<implCharacteristicRegister>{
vec![ACharacteristic::default(),BCharacteristic::default(),// <-- this fails, as it is not the same type as above
It could be me that is not the most well trained Rust guy, but how would I make a vector of more than one. Boxed may be a help here, but that is not the same as the Vec<impl ....
The text was updated successfully, but these errors were encountered:
Hey thanks for submitting an issue! I’m on vacation right now but will definitely take a look at your issue when I’m back at my desk on Sunday. If you happen to find a fix in the meantime feel free to open a PR
Thanks for sharing this, I really liked to try out your work, and sorry in advance if this is a silly question.
In your example you just have a single service and a single characteristic, and you use
default
to get an instance of the characteristic.But I tried to return multiple characteristics and that fails when using the example:
It could be me that is not the most well trained Rust guy, but how would I make a vector of more than one. Boxed may be a help here, but that is not the same as the
Vec<impl ...
.The text was updated successfully, but these errors were encountered: