Hello everyone, I am trying to send the chipid of my esp32 to the mqttcloud server. I have tried this
client.publish("esp/test", String(ESP.getChipId()).c_str());
and also elaborated and tried with this code
char chipid_mq[1000];
chipid=ESP.getEfuseMac();
Serial.println(chipid);
Serial.printf("ESP32 Chip ID = %04X",(uint16_t)(chipid>>32));//print High 2 bytes
Serial.printf("%08X\n",(uint32_t)chipid);//print Low 4bytes.
chipid_str.toCharArray(chipid_mq,chipid_str.length() + 1);
client.publis("esp/test",chipid_mq);
I keep getting this error call of overloaded 'String(uint64_t)' is ambiguous
Can someone please help?