Closed subcarpathia closed 9 months ago
i just downloaded the newest master-esp8266, change tempsensor in userconfig to 1 und build just fine. I´m pretty sure you used a newer version with an old userconfig. For 6. sounds like you came from an old release (2,X), erase flash and reupload in total fill fix that.
Hello
During compiling with DS18B20 sensor - found some issues
When set in userConfig.h
#define TEMPSENSOR 1
Causes compilation error: Solution
In main.cpp
OneWire oneWire(PIN_TEMPSENSOR); // Setup a OneWire instance to communicate with OneWire DallasTemperature sensors(&oneWire);
// #if TEMPSENSOR == 1 // OneWire oneWire(PINTEMPSENSOR); // Setup a OneWire instance to communicate with OneWire // // devices (not just Maxim/Dallas temperature ICs) // DallasTemperature sensors(&oneWire); // DeviceAddress sensorDeviceAddress; // arrays to hold device address // #endif
// Dallas temp sensor
if TEMPSENSOR == 1
const char sysVersion[] = (STR(FW_VERSION) "." STR(FW_SUBVERSION) "." STR(FW_HOTFIX) " " FW_BRANCH " " AUTO_VERSION);
changed to
const char sysVersion[] = (STR(FW_VERSION) "." STR(FW_SUBVERSION) "." STR(FW_HOTFIX) " " FW_BRANCH " ");
6. After run :
Will be very , very nice to show for about 1-2 seconds assigned the IP address after login to WiFi . Makes things much easier when address is assigned dynamically,