update mqtt client id to be __TIME__ + AIO_USERNAME in examples
This commit is contained in:
parent
e41e843d67
commit
5ac8cda53d
@ -51,7 +51,7 @@ const char MQTT_SERVER[] PROGMEM = AIO_SERVER;
|
|||||||
// Set a unique MQTT client ID using the AIO key + the date and time the sketch
|
// Set a unique MQTT client ID using the AIO key + the date and time the sketch
|
||||||
// was compiled (so this should be unique across multiple devices for a user,
|
// was compiled (so this should be unique across multiple devices for a user,
|
||||||
// alternatively you can manually set this to a GUID or other random value).
|
// alternatively you can manually set this to a GUID or other random value).
|
||||||
const char MQTT_CLIENTID[] PROGMEM = AIO_KEY __DATE__ __TIME__;
|
const char MQTT_CLIENTID[] PROGMEM = __TIME__ AIO_USERNAME;
|
||||||
const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
|
const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
|
||||||
const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
|
const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ const char MQTT_SERVER[] PROGMEM = AIO_SERVER;
|
|||||||
// Set a unique MQTT client ID using the AIO key + the date and time the sketch
|
// Set a unique MQTT client ID using the AIO key + the date and time the sketch
|
||||||
// was compiled (so this should be unique across multiple devices for a user,
|
// was compiled (so this should be unique across multiple devices for a user,
|
||||||
// alternatively you can manually set this to a GUID or other random value).
|
// alternatively you can manually set this to a GUID or other random value).
|
||||||
const char MQTT_CLIENTID[] PROGMEM = AIO_KEY __DATE__ __TIME__;
|
const char MQTT_CLIENTID[] PROGMEM = __TIME__ AIO_USERNAME;
|
||||||
const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
|
const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
|
||||||
const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
|
const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ const char MQTT_SERVER[] PROGMEM = AIO_SERVER;
|
|||||||
// Set a unique MQTT client ID using the AIO key + the date and time the sketch
|
// Set a unique MQTT client ID using the AIO key + the date and time the sketch
|
||||||
// was compiled (so this should be unique across multiple devices for a user,
|
// was compiled (so this should be unique across multiple devices for a user,
|
||||||
// alternatively you can manually set this to a GUID or other random value).
|
// alternatively you can manually set this to a GUID or other random value).
|
||||||
const char MQTT_CLIENTID[] PROGMEM = AIO_KEY __DATE__ __TIME__;
|
const char MQTT_CLIENTID[] PROGMEM = __TIME__ AIO_USERNAME;
|
||||||
const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
|
const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
|
||||||
const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
|
const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ const char MQTT_SERVER[] PROGMEM = AIO_SERVER;
|
|||||||
// Set a unique MQTT client ID using the AIO key + the date and time the sketch
|
// Set a unique MQTT client ID using the AIO key + the date and time the sketch
|
||||||
// was compiled (so this should be unique across multiple devices for a user,
|
// was compiled (so this should be unique across multiple devices for a user,
|
||||||
// alternatively you can manually set this to a GUID or other random value).
|
// alternatively you can manually set this to a GUID or other random value).
|
||||||
const char MQTT_CLIENTID[] PROGMEM = AIO_KEY __DATE__ __TIME__;
|
const char MQTT_CLIENTID[] PROGMEM = __TIME__ AIO_USERNAME;
|
||||||
const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
|
const char MQTT_USERNAME[] PROGMEM = AIO_USERNAME;
|
||||||
const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
|
const char MQTT_PASSWORD[] PROGMEM = AIO_KEY;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user