uint8_t compile errors with Qwiic Openly and Arduino Nano 33 BLE Sense

Hi,

I am getting the laundry list of errors below when I try to compile the examples that come in the Qwiic OpenLog library. I have not altered the code in any way. Any help would be appreciated.

Arduino: 1.8.16 (Mac OS X), Board: “Arduino Nano 33 BLE”

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp: In member function ‘boolean OpenLog::setI2CAddress(uint8_t)’:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: ambiguous overload for ‘operator=’ (operand types are ‘arduino::String’ and ‘uint8_t {aka unsigned char}’)

temp = addr;

^~~~

In file included from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/IPAddress.h:24:0,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/ArduinoAPI.h:30,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/Arduino.h:27,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.h:31,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:28:

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:98:11: note: candidate: arduino::String& arduino::String::operator=(const arduino::String&)

String & operator = (const String &rhs);

^~~~~~~~

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:98:11: note: conversion of argument 1 would be ill-formed:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: conversion from ‘uint8_t {aka unsigned char}’ to ‘const arduino::String’ is ambiguous

temp = addr;

^~~~

In file included from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/IPAddress.h:24:0,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/ArduinoAPI.h:30,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/Arduino.h:27,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.h:31,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:28:

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:74:2: note: candidate: arduino::String::String(const arduino::__FlashStringHelper*)

String(const __FlashStringHelper *str);

^~~~~~

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:74:2: note: conversion of argument 1 would be ill-formed:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: invalid conversion from ‘uint8_t {aka unsigned char}’ to ‘const arduino::__FlashStringHelper*’ [-fpermissive]

temp = addr;

^~~~

In file included from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/IPAddress.h:24:0,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/ArduinoAPI.h:30,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/Arduino.h:27,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.h:31,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:28:

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:70:2: note: candidate: arduino::String::String(const char*)

String(const char *cstr = “”);

^~~~~~

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:70:2: note: conversion of argument 1 would be ill-formed:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: invalid conversion from ‘uint8_t {aka unsigned char}’ to ‘const char*’ [-fpermissive]

temp = addr;

^~~~

In file included from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/IPAddress.h:24:0,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/ArduinoAPI.h:30,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/Arduino.h:27,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.h:31,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:28:

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:99:11: note: candidate: arduino::String& arduino::String::operator=(const char*)

String & operator = (const char *cstr);

^~~~~~~~

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:99:11: note: conversion of argument 1 would be ill-formed:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: invalid conversion from ‘uint8_t {aka unsigned char}’ to ‘const char*’ [-fpermissive]

temp = addr;

^~~~

In file included from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/IPAddress.h:24:0,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/ArduinoAPI.h:30,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/Arduino.h:27,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.h:31,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:28:

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:100:11: note: candidate: arduino::String& arduino::String::operator=(const arduino::__FlashStringHelper*)

String & operator = (const __FlashStringHelper *str);

^~~~~~~~

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:100:11: note: conversion of argument 1 would be ill-formed:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: invalid conversion from ‘uint8_t {aka unsigned char}’ to ‘const arduino::__FlashStringHelper*’ [-fpermissive]

temp = addr;

^~~~

In file included from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/IPAddress.h:24:0,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/ArduinoAPI.h:30,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/Arduino.h:27,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.h:31,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:28:

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:102:11: note: candidate: arduino::String& arduino::String::operator=(arduino::String&&)

String & operator = (String &&rval);

^~~~~~~~

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:102:11: note: conversion of argument 1 would be ill-formed:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: conversion from ‘uint8_t {aka unsigned char}’ to ‘arduino::String’ is ambiguous

temp = addr;

^~~~

In file included from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/IPAddress.h:24:0,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/ArduinoAPI.h:30,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/Arduino.h:27,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.h:31,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:28:

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:74:2: note: candidate: arduino::String::String(const arduino::__FlashStringHelper*)

String(const __FlashStringHelper *str);

^~~~~~

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:74:2: note: conversion of argument 1 would be ill-formed:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: invalid conversion from ‘uint8_t {aka unsigned char}’ to ‘const arduino::__FlashStringHelper*’ [-fpermissive]

temp = addr;

^~~~

In file included from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/IPAddress.h:24:0,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/ArduinoAPI.h:30,

from /Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/Arduino.h:27,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.h:31,

from /Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:28:

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:70:2: note: candidate: arduino::String::String(const char*)

String(const char *cstr = “”);

^~~~~~

/Users/jsabby/Library/Arduino15/packages/arduino/hardware/mbed_nano/2.5.2/cores/arduino/api/String.h:70:2: note: conversion of argument 1 would be ill-formed:

/Volumes/USS Reliant/My Dropbox/Dropbox/Arduino/libraries/SparkFun_Qwiic_OpenLog/src/SparkFun_Qwiic_OpenLog_Arduino_Library.cpp:101:10: error: invalid conversion from ‘uint8_t {aka unsigned char}’ to ‘const char*’ [-fpermissive]

temp = addr;

^~~~

exit status 1

Error compiling for board Arduino Nano 33 BLE.

This report would have more information with

“Show verbose output during compilation”

option enabled in File → Preferences.