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

  • 44
  • 1
  • 7
  • 6
  • 1
  • 178
  • 15

349
Online

9.9k
Users

10.4k
Topics

107.5k
Posts