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

  • 20
  • 2
  • 177
  • 5
  • 79
  • 7
  • 2

260
Online

9.8k
Users

10.3k
Topics

106.7k
Posts