-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Error "Buffer is not defined" during start Angular application #549
Comments
Hi, thank you for the issue, I am adding a help wanted label, so if someone knows the answer they will know to help. |
Hi, import { Injectable } from '@angular/core'; @Injectable({ constructor() { } readHoldingRegisters() {
} When I call the "readHoldingRegisters" function I get the following error: core.mjs:6531 Anche se ho lanciato il seguente comando "npm i --save-dev @types/node" e registrato in tsconfig.ts nei types "node". Paolo |
in my understanding modbus-serial is a backend library One of the most obvious possibility questions |
Hi Teddy, You're right, I tried to manage it from the back-end and now I can communicate with the slave. Thanks for feedback! |
in vue too |
如何转为不同类型的数据,比如float,short, word等,我试图用data.buffer.readFloatBE()转化但是得到的结果不正确,请问该如何正确拿到对应类型的值 |
Show your code? |
Hi,
With Angula17, nodejs v. 20.10 and modbus-serial 8.0.16 I'm trying to carry out readings with the modbus protocol using 'modbus-serial' but I have the following problem when starting the application highlighted in the console:
Uncaught ReferenceError: Buffer is not defined
at addBufferBitOp (buffer_bit.js:30:5)
at node_modules/modbus-serial/index.js (index.js:20:1)
at __require2 (chunk-FWOMF3V2.js?v=883fa305:41:50)
at index.js:1194:33
No errors are reported within the
buffer_bit.js
file at design time.Thanks in advance for clarifications.
Paolo
The text was updated successfully, but these errors were encountered: