I am getting a data from device in the HEX format like below:
<Buffer 00 cc>
I need to read the same in TEXT format and store the value in Database. I am using PostgreSQL as database to store the data.
Below is the error message I am getting while processing it to the Database.
error: invalid message format
at Connection.parseE (/var/www/html/project/collection/node_modules/pg/lib/connection.js:614:13)
at Connection.parseMessage (/var/www/html/project/collection/node_modules/pg/lib/connection.js:413:19)
at Socket.<anonymous> (/var/www/html/project/collection/node_modules/pg/lib/connection.js:129:22)
at Socket.emit (events.js:182:13)
Please let me how to rectify this.