user53994: I need to print an unsigned long long variable:
unsigned long long t = 1559072327000ULL;
I have tried the following:
Serial.println(t); // call of overloaded 'println(uint64_t&)' is ambiguous

char[18] buf;

sprintf(dt, 18, "%lu", t); // Prints 4294165848

snprintf(dt, 18, "%lu", t); // Prints 126

vsnprintf(dt, 18, "%lu", t); // cannot convert 'uint64_t {aka long long unsigned int}' to '__gnuc_va_list {aka __va_list_tag}'

Any suggestion?

user53994: Okay, I figured out... this two prints the right number:
sprintf(dt,"%llu", t);
snprintf(dt, 18, "%llu", t);


53994: <p>I need to print an unsigned long long variable:</p>

<p><code>unsigned long long t = 1559072327000ULL;</code></p>

<p>I have tried the following:</p>

<pre><code>Serial.println(t); // call of overloaded 'println(uint64_t&amp;)' is ambiguous

char[18] buf;

sprintf(dt, 18, "%lu", t); // Prints 4294165848

snprintf(dt, 18, "%lu", t); // Prints 126

vsnprintf(dt, 18, "%lu", t); // cannot convert 'uint64_t {aka long long unsigned int}' to '__gnuc_va_list {aka __va_list_tag}'
</code></pre>

<p>Any suggestion?</p>
 53994: <p>Okay, I figured out... this two prints the right number:</p>

<pre><code>sprintf(dt,"%llu", t);
snprintf(dt, 18, "%llu", t);
</code></pre>
