python-seabreeze icon indicating copy to clipboard operation
python-seabreeze copied to clipboard

Enlighten ooi

Open rc14193 opened this issue 2 years ago • 1 comments

Suppression of errors indicating bad start bytes. I encountered this error while using an STS and suppressing allowed it to connect and operate as expected.

rc14193 avatar Oct 18 '21 12:10 rc14193

Hi @rc14193

Thank you for the PR. Could make changes to the PR to allow disabling these checks via an environment variable? I would suggest if SEABREEZE_OBP_PROTOCOL_CHECKS=1 is set you skip these checks.

That way your use case would be supported and it wouldn't break for other users in case they rely on the checks working.

Again thanks for your contribution! Cheers, Andreas :smiley:

ap-- avatar Oct 21 '21 18:10 ap--

on current master this can now be enabled by either setting SEABREEZE_OBP_PROTOCOL_CHECKS=1 as an environment variable or by running

from seabreeze.pyseabreeze.config import config

config.set(obp_protocol_checks=True)

...  # your code

ap-- avatar Feb 25 '23 12:02 ap--