I am using an AT command to set the URL of an Eddystone beacon using an Adafruit BlueFruit, this works fine:
#define URL "http://www.christmas.com"
ble.sendCommandCheckOK(F( "AT+EDDYSTONEURL=" URL ));
But I don't want a fixed URL, I want the URL to be set inside the android code like this:
URLString = "http://www.christmas.com";
ble.sendCommandCheckOK(F( "AT+EDDYSTONEURL=" URLString ));
But this doesn't work, the compiler reports:
- expected ')' before 'URLString'
- #define PSTR(str) (str)
Please help...I can't define the URL as a constant, I need to create it as a string.
The ble commands are drawn from Adafruit_BLE.h