This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Potential bug in Python script

I'm developing py script for automation testing of nRF devices. My script is based Nordic's scripts Master Control Panel\3.7.1.8567\lib\dfu... So, during testing my script I tested case when I turn-off nRF device during writing into BLE Profile (update characteristics) but nothing bag happens. I checked it and found that in file master_emulator.py function def send_data(self, pipe, msg, count, description): returns void instead of boolean variable to notify user that call send_data failed. I fixed it for me but please be informed about this issue.

Parents
  • Hi, and thanks

    While the function does not report any error when returning due to the if not self.connected test, it should raise an exception on error from the SendData() call.

    I have reported the lack of error reporting (for the unconnected case) in our internal issue tracker, assuming this is the feature request (which you have implemented).

    If you have had problems with SendData() (i.e. no exception raised on SendData() fail) please let me know so I can investigate further and register that one as well.

    Regards, Terje

Reply
  • Hi, and thanks

    While the function does not report any error when returning due to the if not self.connected test, it should raise an exception on error from the SendData() call.

    I have reported the lack of error reporting (for the unconnected case) in our internal issue tracker, assuming this is the feature request (which you have implemented).

    If you have had problems with SendData() (i.e. no exception raised on SendData() fail) please let me know so I can investigate further and register that one as well.

    Regards, Terje

Children
No Data
Related