Hi, I'm trying to implement some code that'd execute on each characteristic update, but unfortunately it's quite complicated to use .on_update(...) right now,
Here's my code:
and unfortunately it won't compile because closure might outlive current function.
is there some approach that you use in this case?
maybe it'd be easier to expose some channels such as mpsc or broadcast from tokio crate?
Hi, I'm trying to implement some code that'd execute on each characteristic update, but unfortunately it's quite complicated to use
.on_update(...)
right now,Here's my code:
and unfortunately it won't compile because closure might outlive current function.
is there some approach that you use in this case?
maybe it'd be easier to expose some channels such as
mpsc
orbroadcast
fromtokio
crate?