How to pass the #define for MySensors
-
I need to use the same technique in my library but is not working.
I am using in my config.h#ifdef ODEV_API_KEY #define ODEV_API_KEY_REAL ODEV_API_KEY #endif #ifndef ODEV_API_KEY #define ODEV_API_KEY_REAL "*" #endif const char MQTT_TOPIC[] = ODEV_API_KEY_REAL "/in/ModuleName";If I put a #error at first condiftion, it really indicates is falling in this first condition, but MQTT_TOPIC is as if he had fallen in second
-
-
If I knew it could include cpf in a .h file I had done before ... =]
Thanks for the tip. -
I have found some alternatives that can be used:
https://electrohobby.ca/forum/showthread.php?tid=214&pid=1281
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login