Skip to content

Conversation

@nazar-codethink
Copy link
Contributor

No description provided.

Numbers > 127 shouldn't be used with Int8Array, so to avoid using negative numbers just use Array<number>. Other functions also seem to use this approach.
@nazar-codethink nazar-codethink force-pushed the nazar/improve_custom_function branch from 5a5be9f to 6137476 Compare October 29, 2025 14:06
@yaacov yaacov merged commit dfc5713 into yaacov:master Oct 30, 2025
3 checks passed
@yaacov
Copy link
Owner

yaacov commented Oct 30, 2025

Thanks

jakedegiovanni pushed a commit to GivEnergy/node-modbus-serial that referenced this pull request Nov 24, 2025
* In custom function use Array<number> instead of Int8Array

Numbers > 127 shouldn't be used with Int8Array, so to avoid using negative numbers just use Array<number>. Other functions also seem to use this approach.

* Custom function: fix docs and types, add a test
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

Successfully merging this pull request may close these issues.

3 participants