Hello,
I am trying integrate the SDCardLogHandlerRK Simple example into an existing project using Visual Studio Code, and Particle Bsom OS 5.0.1
I am getting the following compiler error:
[{
“resource”: "/c:/Users//Documents/“DataLogger”,
“owner”: “cpptools”,
“severity”: 8,
“message”: “no matching function for call to ‘SdCardLogHandler<2048>::SdCardLogHandler(SdFat&, const int&, long unsigned int, LogLevel)’”,
“source”: “gcc”,
“startLineNumber”: 27,
“startColumn”: 85,
“endLineNumber”: 27,
“endColumn”: 85
}]
Here is the start of my .ino file
#include "Particle.h"
#include "SdCardLogHandlerRK.h"
#include "SdFat.h"
#include <Wire.h>
#include <Arduino.h>
#include "MCP23008-RK.h"
#include <SparkFun_u-blox_GNSS_Arduino_Library.h>
#include <SparkFun_BNO080_Arduino_Library.h>
#include "spark_wiring_stream.h"
SYSTEM_THREAD(ENABLED);
const int SD_CHIP_SELECT = A6;
SdFat sd;
SdCardLogHandler<2048> logHandler(sd, SD_CHIP_SELECT, SPI_FULL_SPEED, LOG_LEVEL_INFO);
I am also calling loHandler.setup() in the setup section, and logHandler.loop() in the loop section.
I have tried running clean, and restarting Visual Studio Code as well as my desktop and still getting the same error.