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.
2 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 • 10 days ago • Trand 10 days ago -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Home Assistant/MySensors quirks
Development • 15 days ago • OldSurferDude 15 days ago -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07