Changing setIndication behavior



  • Hello.

    How I can change default RX/TX LED blink behavior without modifying MySensors library? I'm talking about serial gateway. Gateway always blink RX and TX LEDs together just because gateway receives (RX) data from serial port and immediately sends (TX) this data to radio network. The same problem happens then gateway receives data from radio.

    I just want to blink RX led then something received from radio network and blink TX led then something sent to radio network.

    	if ((INDICATION_TX == ind) || (INDICATION_GW_TX == ind)) {
    		ledsBlinkTx(1);
    	} else
    #endif
    #if defined(MY_DEFAULT_RX_LED_PIN)
    		if ((INDICATION_RX == ind) || (INDICATION_GW_RX == ind)) {
    			ledsBlinkRx(1);
    		} else
    #endif
    


Suggested Topics

  • 1
  • 14
  • 4
  • 60
  • 2
  • 3
  • 8
  • 16

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts