test-fullautomation / robotframework-doip

doip support for robotframework
Apache License 2.0
0 stars 1 forks source link

Implement the format of input data for diagnostic message. #12

Closed huavanthong closed 8 months ago

huavanthong commented 8 months ago

Hi Thomas,

Because client.send_diagnostic() receive the input data is byte array.
I have updated the code to reformat the input message when send a diagnostic message.

 # Convert string to byte array
msg = bytes.fromhex(diagnostic_payload)
self.client.send_diagnostic(msg, timeout)

Right now, users only send the input data as string format to diagnostic message.

If you have any concerns, please tell me.

Thank you and best regards, Thong Hua