Conversion from 'const uint8_t {aka const unsigned char}' to 'String' is ambiguous

Anyone can help me with this problem ?

#include <MQUnifiedsensor.h>
#include <DS3231.h>
#include <SD.h>
#include <SPI.h>
#include <OneWire.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <DallasTemperature.h>

//======== INISIALISASI I/O ========//
#define MQ8_WIRE A0
#define ONE_WIRE_BUS 2
#define pinCS 10
#define pinRelay 1

LiquidCrystal_I2C lcd(0x27, 16, 2);
DS3231 rtc(SDA, SCL);
File myFile;
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

MQUnifiedsensor mq8(MQ8_WIRE) Here the problem

int minSmokePPM = 5000;

‘const uint8_t {aka const unsigned char}’ to ‘String’ is ambiguous](Conversion from 'const uint8_t {aka const unsigned char}' to 'String' is ambiguous)

if the above is an error msg, why don' t you include the line number?

Please use code tags.

Look at MQUnifiedsensor .h and see what the prototype for mq8() is expecting for an argument.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.