I updated the file app/device_manager.js.
Around line 109, i updated:
Code: Select all
const deviceId = message.cid;
Code: Select all
const deviceId = message.cid || message.mac;
Moderator: leecollings
Code: Select all
const deviceId = message.cid;
Code: Select all
const deviceId = message.cid || message.mac;
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Decipheriv.final (internal/crypto/cipher.js:172:29)
at decrypt (/home/pi/ewpe-smart-mqtt/app/encryptor.js:15:48)
at Connection.handleResponse (/home/pi/ewpe-smart-mqtt/app/connection.js:110:26)
at Socket.emit (events.js:314:20)
at UDP.onMessage [as onmessage] (dgram.js:921:8) {
library: 'digital envelope routines',
function: 'EVP_DecryptFinal_ex',
reason: 'bad decrypt',
code: 'ERR_OSSL_EVP_BAD_DECRYPT'
}
npm ERR! code 1
npm ERR! path /home/pi/ewpe-smart-mqtt
npm ERR! command failed
npm ERR! command sh -c node index.js
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2023-01-09T22_35_32_087Z-debug.log
Sorry,
Users browsing this forum: No registered users and 0 guests