python-seabreeze
python-seabreeze copied to clipboard
Enlighten ooi
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.
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:
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