ItsyBitsy M0: sscanf doesn't work (Arduino IDE)

Hi :slight_smile:

I want to use sscanf to parse a formated serial input into different variables.
Something like "sscanf(SerString, "%s %d %f", SerCmd, &SerInt, &SerFloat);". But SerFloat is always 0.0.
Does anyone have an idea what may be the reason or how to work around it?

Tanks a lot! :slight_smile:

printf and its derivatives doesn't work with float at most Arduino boards.

I found a solution for the problem.

Putting asm(".global _printf_float"); and asm(".global _scanf_float"); in the setup and including #include <avr/dtostrf.h>