wirte your own protocol / MySensor.h


  • Hardware Contributor

    Trying to write a MQTT controller based on the MyGatewayTransportMQTTClient.cpp I have a problem, with MySensor.h:

    // We currently only support one protocol at the moment, enable it
    #include "core/MyProtocolMySensors.cpp"
    

    My proposal

    #if !defined(MY_OWN_PROTOCOL)
    		#include "core/MyProtocolMySensors.cpp"
    #endif
    

    Or is there a better solution?


  • Admin

    Hmm. that should't be included at all for MQTT gateways. Thanks for spotting.

    Or maybe I misunderstand what you're trying to do.. Please open a chat.


Log in to reply
 

Suggested Topics

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts