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

  • 6
  • 79
  • 2
  • 6
  • 5
  • 5
  • 1
  • 7

150
Online

10.1k
Users

10.5k
Topics

108.8k
Posts