I’ve still no luck, I added your DallasTemperature.cpp and .h but still a lot of errors when I verify.
Error:
In file included from …/inc/spark_wiring.h:29:0,
from …/inc/application.h:29,
from DallasTemperature.h:26,
from DallasTemperature.cpp:12:
…/…/core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning “Defaulting to Release Build” [-Wcpp]
#warning “Defaulting to Release Build”
^
In file included from DallasTemperature.h:27:0,
from DallasTemperature.cpp:12:
OneWire/OneWire.h:31:0: warning: “FALSE” redefined [enabled by default]
#define FALSE 0
^
In file included from …/…/core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from …/…/core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from …/inc/main.h:37,
from …/inc/spark_utilities.h:30,
from …/inc/spark_wiring.h:33,
from …/inc/application.h:29,
from DallasTemperature.h:26,
from DallasTemperature.cpp:12:
…/…/core-common-lib/CC3000_Host_Driver/data_types.h:53:0: note: this is the location of the previous definition
#define FALSE (0)
^
In file included from DallasTemperature.h:27:0,
from DallasTemperature.cpp:12:
OneWire/OneWire.h:32:0: warning: “TRUE” redefined [enabled by default]
#define TRUE 1
^
In file included from …/…/core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from …/…/core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from …/inc/main.h:37,
from …/inc/spark_utilities.h:30,
from …/inc/spark_wiring.h:33,
from …/inc/application.h:29,
from DallasTemperature.h:26,
from DallasTemperature.cpp:12:
…/…/core-common-lib/CC3000_Host_Driver/data_types.h:57:0: note: this is the location of the previous definition
#define TRUE (!FALSE)
^
In file included from …/inc/spark_wiring.h:29:0,
from OneWire/OneWire.h:8,
from OneWire/OneWire.cpp:131:
…/…/core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning “Defaulting to Release Build” [-Wcpp]
#warning “Defaulting to Release Build”
^
In file included from OneWire/OneWire.cpp:131:0:
OneWire/OneWire.h:31:0: warning: “FALSE” redefined [enabled by default]
#define FALSE 0
^
In file included from …/…/core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from …/…/core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from …/inc/main.h:37,
from …/inc/spark_utilities.h:30,
from …/inc/spark_wiring.h:33,
from OneWire/OneWire.h:8,
from OneWire/OneWire.cpp:131:
…/…/core-common-lib/CC3000_Host_Driver/data_types.h:53:0: note: this is the location of the previous definition
#define FALSE (0)
^
In file included from OneWire/OneWire.cpp:131:0:
OneWire/OneWire.h:32:0: warning: “TRUE” redefined [enabled by default]
#define TRUE 1
^
In file included from …/…/core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from …/…/core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from …/inc/main.h:37,
from …/inc/spark_utilities.h:30,
from …/inc/spark_wiring.h:33,
from OneWire/OneWire.h:8,
from OneWire/OneWire.cpp:131:
…/…/core-common-lib/CC3000_Host_Driver/data_types.h:57:0: note: this is the location of the previous definition
#define TRUE (!FALSE)
^
ds18b20.cpp:1:0: warning: ignoring #pragma SPARK_NO_PREPROCESSOR [-Wunknown-pragmas]
#pragma SPARK_NO_PREPROCESSOR
^
In file included from …/inc/spark_wiring.h:29:0,
from …/inc/application.h:29,
from DallasTemperature.h:26,
from ds18b20.cpp:4:
…/…/core-common-lib/SPARK_Firmware_Driver/inc/config.h:12:2: warning: #warning “Defaulting to Release Build” [-Wcpp]
#warning “Defaulting to Release Build”
^
In file included from DallasTemperature.h:27:0,
from ds18b20.cpp:4:
OneWire/OneWire.h:31:0: warning: “FALSE” redefined [enabled by default]
#define FALSE 0
^
In file included from …/…/core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from …/…/core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from …/inc/main.h:37,
from …/inc/spark_utilities.h:30,
from …/inc/spark_wiring.h:33,
from …/inc/application.h:29,
from DallasTemperature.h:26,
from ds18b20.cpp:4:
…/…/core-common-lib/CC3000_Host_Driver/data_types.h:53:0: note: this is the location of the previous definition
#define FALSE (0)
^
In file included from DallasTemperature.h:27:0,
from ds18b20.cpp:4:
OneWire/OneWire.h:32:0: warning: “TRUE” redefined [enabled by default]
#define TRUE 1
^
In file included from …/…/core-common-lib/CC3000_Host_Driver/cc3000_common.h:38:0,
from …/…/core-common-lib/SPARK_Firmware_Driver/inc/hw_config.h:35,
from …/inc/main.h:37,
from …/inc/spark_utilities.h:30,
from …/inc/spark_wiring.h:33,
from …/inc/application.h:29,
from DallasTemperature.h:26,
from ds18b20.cpp:4:
…/…/core-common-lib/CC3000_Host_Driver/data_types.h:57:0: note: this is the location of the previous definition
#define TRUE (!FALSE)
^
ds18b20.cpp: In function ‘void loop()’:
ds18b20.cpp:51:14: error: ‘atTempAnnounced’ was not declared in this scope
if((!atTempAnnounced) && (spaInTempC > spaTargetTemp) && (spaTargetTemp != 0.0))
^
ds18b20.cpp:51:48: error: ‘spaTargetTemp’ was not declared in this scope
if((!atTempAnnounced) && (spaInTempC > spaTargetTemp) && (spaTargetTemp != 0.0))
^
make: *** [ds18b20.o] Error 1