DaleGia / nano-33-sense-serial-example

An example program for the Arduino Nano 33 BLE Sense that outputs CSV data for all sensors through UART.
GNU General Public License v3.0
22 stars 3 forks source link

printf not defined in new mbed as of Arduino IDE 2.0.3 / mbed OS 3.4.1 board library #5

Open DoubleStrike opened 1 year ago

DoubleStrike commented 1 year ago

On compile, the compiler throws an error that Serial.printf is not defined.

Has something fundamental changed recently with this board library? I tried to follow the directions here (https://github.com/arduino/ArduinoCore-API/pull/28/commits/dab8c6144c646f6179ab32fff83c28e04bde3314) but that just led to more compile errors.

DaleGia commented 1 year ago

@DoubleStrike I have moved away from Serial.printf and now use snprintf to build the strings. I have no idea why Arduino did away with printf. Annoying. Anyway I havent tested this as I don't have a board at the moment but will if I get the chance. If you can test in it in the meantime I would appreciate if you communicate your results.