New answers tagged

2 votes
Accepted

Can't convert string to UTF-16LE for MD5 calculation on an Arduino

You have to convert the string "<challenge>-<password>" to UTF-16LE. If the whole string is plain ASCII, the conversion is trivial: you just have to add a zero byte after each ...
  • 37.2k
1 vote
Accepted

Does avr-libc have any reason to word-align C++ class member variables?

GCC has an extension to add attributes to types, which you can use to tell it your alignment requirements. Additionally it has a #pragma to define the alignment, which could be used alternatively. But ...
  • 1,209
6 votes
Accepted

IF statement inside of a function call? Code help

You could look at this as an "if expression", the correct term is "conditional operator" (C++ standard chapter 8.16). Many know it as "ternary operator" because it has ...
  • 1,209
0 votes

Difference between data type int and long on Arduino

if you are using Esp32 boards in Arduino IDE:
  • 153

Top 50 recent answers are included