About 17,000 results
Open links in new tab
  1. How to return Char Array Value in Arduino IDE Function?

    Aug 18, 2019 · char char_array[str_len]; is local to the function - it is created on function entry and its memory is released on function exit. The contents of that memory are undefined once it has …

  2. How can I get Serial.print to print a variable thats a char? - Arduino ...

    I'm trying to write a function as part of my code, and the function basically has to write the name of a parameter, but I can't get it to print properly to the screen. Here is what I've got: void

  3. How to get char array's length - Arduino Stack Exchange

    How to get char array's length Ask Question Asked 5 years, 11 months ago Modified 5 years, 11 months ago

  4. Clear existing array when getting new serial command

    I get serial data from the console and store it in a char array called "data". Then, when I send a new console message to the Arduino, I want it to clear the existing "data" array and store only …

  5. String to char array conversion - Arduino Stack Exchange

    1) c_str() is no replacement for toCharArray(): your first example fails to compile with “error: invalid conversion from ‘const char*’ to ‘char*’”. Of course, if you only need a const char *, then …

  6. arduino uno - Difference between char array and unsigned char …

    Feb 10, 2021 · It’s recommended to only use char for storing characters. For an unsigned, one-byte (8 bit) data type, use the byte data type. So size wise an array of chars and unsigned …

  7. How to append to array of Strings in arduino?

    May 23, 2022 · You can't append to an array as they have a fix size. You need to know how many entries are expectable at max and define the array's size accordingly. You also better use char …

  8. Number of elements in an array char - Arduino Stack Exchange

    Feb 14, 2020 · What kind of function can I use to know how many elements are in an array char? sizeof() gives the number of 'spaces' available so it doesn't work for me.

  9. How can I pass a char array as the parameter to a function?

    The library function takes (char[] TextString, unsigned int Offset) as it's parameters. EDIT: the library also has functions print7Seg(long number, byte decimalPlace, unsigned int Offset) and …

  10. Printing the array using print and serial write function in Arduino …

    Jul 29, 2021 · I have, one program with only using printing array and other with serial write and print function for the array, while using serial write and print function I get these extra …