Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot write floating point values with _write() #493

Open
skygreenslade opened this issue Oct 28, 2024 · 0 comments
Open

Cannot write floating point values with _write() #493

skygreenslade opened this issue Oct 28, 2024 · 0 comments

Comments

@skygreenslade
Copy link

I cannot write floating point values with _write(). Instead "null" is being written, and no error or return value is provided.

Example which creates the issue:

async with BAC0.start(ip=_ip) as bacnet:
        result = await bacnet._write(f'{_device_ip}:{_port} analogOutput 1 presentValue 0.1 - 3')
        print(f'\nResult: {result}\n')

Output (truncated):

Result: None

I think this may be due to the regex parsing the write arguments parsing a word for the value. Is there any workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant