Working with C++ (.cpp files) in IoT some knowledge for conversion between formats is needed. For seeding random ID strings this snippet might be useful:

String clientId = “MyClient-” +¬†String(random(0xffff), HEX);
char clientIdAsChars* = clientId.c_str();

Useful for connecting your IoT device to a mqtt broker when developing.

Leave a Reply

Your email address will not be published. Required fields are marked *