wirte your own protocol / MySensor.h
-
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?
-
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.
1 out of 2
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Home Assistant/MySensors quirks
Development • 17 Mar 2025, 02:35 • OldSurferDude 17 Mar 2025, 02:35 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33