Executing only required service! #182
-
I have a question! If 2 component implements the service - based on the requirement, how to invoke the service of the intended implementation!! How it can be decided at runtime which one to invoke!? In below example, SendByte_t service is invoked from CoreComponent_t as well as TxComponent_t! how to invoke only TxComponent_t? Could you please help?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Services are bound to the struct type name used to declare them. Even if that service is declared in multiple locations, if it has the same name, then it is a single service. If you want two SendByte services, then give them two different names. |
Beta Was this translation helpful? Give feedback.
Services are bound to the struct type name used to declare them. Even if that service is declared in multiple locations, if it has the same name, then it is a single service.
If you want two SendByte services, then give them two different names.