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 -
[mysensors] Not a valid message: invalid literal for int() with base 10: '\x00\x000'
Development • 18 Sept 2024, 20:34 • kiesel 20 Sept 2024, 08:28 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Sending offset to node
Development • 23 days ago • bsl88k 18 days ago -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
MYSController with MQTT Gateway (via Node Red)
Development • 11 Aug 2024, 22:35 • slt1 11 Aug 2024, 22:35