server/services/mqtt/lib/handleNewMessage.js
Function handleNewMessage
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function handleNewMessage(topic, message) {
logger.debug(`Receives MQTT message from ${topic} : ${message}`);
try {
// If debug mode is enabled, send message to UI