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 -
PJON and Minicore not working
Development • 21 Mar 2025, 19:51 • Trand 21 Mar 2025, 19:51 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
Home Assistant/MySensors quirks
Development • 17 Mar 2025, 02:35 • OldSurferDude 17 Mar 2025, 02:35 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
MQTT-Help me understand about the MQTT Gateway.
Development • 2 Mar 2025, 01:44 • dpcons 12 Mar 2025, 23:39