Skip to content

Define P3 time parameters in Client #426

@mdabrowski1990

Description

@mdabrowski1990

Description

As a user, I would like to have an option to set P3Client_phys and P3Client_func times parameters.
As a user, I would like the client to follow P3Client_phys and P3Client_func and never send request messages before these time parameters expire.
As a user, I would like the client to block sending until another request is delivered.

Acceptance Criteria

  • default value for P3Client value is defined in the Client class
  • User can set P3Client values via Client.__init__ or directly (attributes are accessible)
  • Both P3Client_phys and P3Client_func has to be greater or equal P2Client - raise exception if the condition is not met
  • If P2Client value is changed and becomes greater than one of the P3Client parameters then, update the parameter and warn user about it
  • Client stores the time of the last request message (for both physical and functional addressing).
  • Client stores information whether the last request message was answered (for both physical and functional addressing).
  • Define send request method (and use it for all messages sending via client) which enforces waiting till answer received or P2/P3Client time expired before sending another request.

Metadata

Metadata

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationimplementationChanges to code

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions