Add MCM & MVEC Endpoint Structs to Reduce Client Const Definitions#17
Conversation
| return sendControlCommand( | ||
| interface.bus_id, interface.interface_id, interface.subsystem_id, value, expect_reply, error_message); |
There was a problem hiding this comment.
We should do the value checking/min maxing in this send since the metadata we're checking against is being passed into it via the InterfaceEndpoint
There was a problem hiding this comment.
This would involve adding the min and max and new function parameters, which would break backwards compatibility. Is that fine with you? I can take the time to refactor LEV02
There was a problem hiding this comment.
@zeerekahmad , I'm going to add this in a future PR. I want to create linked PR's that will update the function definition here at the same time I update usage in LEV02 and LEV05
| /// @brief Send relay command | ||
| /// @param interface Interface endpoint to control | ||
| /// @param relay_state Enable or disable | ||
| /// @param expect_reply If true, returns future for response; if false, fire-and-forget |
There was a problem hiding this comment.
is this expect_reply necessary? can't the user just drop/ignore the provided future themself?
There was a problem hiding this comment.
@zeerekahmad did you have rational for this? or should I remove expect_reply from all functions here? If I should remove them, I'll do that in a new PR because that is outside the scope of this PR
There was a problem hiding this comment.
Since all of the control commands have expect_reply, I'd like to change all of them at the same time. I made an issue for this and will circle back to it.
Co-authored-by: Emerson Knapp <537409+emersonknapp@users.noreply.github.com>
Add MCM & MVEC Endpoint Structs to Reduce Client Const Definitions
Add endpoint structs for MCM Interfaces, MCM Relays, and MVEC Relays to help simplify the number of constants the client needs to store.
Questions:
SygnalInterfaceSocketcan
Structs Added
Wrapper Functions Added
MvecRelaySocketcan
Structs Added
Wrapper Functions Added