GladysProject/Gladys

View on GitHub
server/services/mqtt/lib/handleNewMessage.js

Summary

Maintainability
A
1 hr
Test Coverage

Function handleNewMessage has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function handleNewMessage(topic, message) {
  logger.debug(`Receives MQTT message from ${topic} : ${message}`);

  try {
    // If debug mode is enabled, send message to UI
Severity: Minor
Found in server/services/mqtt/lib/handleNewMessage.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status