Combine two DEFINE values

Hi! I have a simple question but I have not found an acceptable answer looking in the forum and other posts on the internet.

I need Join (concat) two DEFINE values, in my project I have:

#define DEVICE_ID "1589"
#define RESOURCE "myResource" + DEVICE_ID

The example above does not work, any ideas?

thanks.

Successive sting literals are combined into one literal, so you can simply use

#define RESOURCE  "myResource" DEVICE_ID

oqibidipo:
Successive sting literals are combined into one literal, so you can simply use

#define RESOURCE  "myResource" DEVICE_ID

THANKS! ---Great method new for me :slight_smile: