constant string question
travis
Posts: 180
Hay guys,
I have this string I send sometimes like this
SEND_STRING device, "27,20,1"
But "27,20,1" is a pain to remember and type out
How do I use a constant for this?
The following does not work:
CONSTANT_HEADACHE = "27,20,0"
SEND_STRING device, CONSTANT_HEADACHE
I have this string I send sometimes like this
SEND_STRING device, "27,20,1"
But "27,20,1" is a pain to remember and type out
How do I use a constant for this?
The following does not work:
CONSTANT_HEADACHE = "27,20,0"
SEND_STRING device, CONSTANT_HEADACHE
0
Comments
Here is one way: