Echo request is not set



  • Hi,
    I'm sending message to controller:

    send(stopMsg.set(true), true);
    

    but echo flag is not set:

    0;0;1;0;31;1
    

    Can anyone explain why?



  • I've found that:

    char *protocolMyMessage2Serial(const MyMessage &message)
    {
    	(void)snprintf_P(_fmtBuffer, (uint8_t)MY_GATEWAY_MAX_SEND_LENGTH,
    	                 PSTR("%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%" PRIu8 ";%s\n"), message.getSender(),
    	                 message.getSensor(), message.getCommand(), message.isEcho(), message.getType(),
    	                 message.getString(_convBuffer));
    	return _fmtBuffer;
    }
    

    We put in the print "message.getEcho()", but this isn't echoed message.
    I think we should put "message.getRequestEcho()" here.


Log in to reply
 

Suggested Topics

2
Online

11.4k
Users

11.1k
Topics

112.6k
Posts