Sigh - looks like I spoke too soon. I added
#include <ITEADLIB_Nextion.h>
and now it doesn’t compile again.
In file included from /src/weatherlcd1.cpp:17:0:
lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.h:66:0: warning: "_BV" redefined [enabled by default]
#define _BV(bit) (1 << (bit))
^
In file included from ./inc/application.h:92:0,
from lib/ITEADLIB_Nextion/src/Nextion.h:25,
from lib/ITEADLIB_Nextion/src/ITEADLIB_Nextion.h:19,
from /src/weatherlcd1.cpp:2:
../wiring/inc/spark_wiring_arduino.h:131:0: note: this is the location of the previous definition
#define _BV(x) (((uint32_t)1) << (x))
^
/src/weatherlcd1.cpp: In function 'void printLCD()':
/src/weatherlcd1.cpp:990:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
else
^
/src/weatherlcd1.cpp:992:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Serial.println("connection failed");
^
/src/weatherlcd1.cpp:1000:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
//---------------------------------------------------------------
^
/src/weatherlcd1.cpp:1013:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
float bar = (float) ((int) (baroTemp * 10 + 0.5) / 10) ; // Round to 1/10th
^
/src/weatherlcd1.cpp:1018:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Date and time display is called in lcdPrintWind
^
/src/weatherlcd1.cpp:1026:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Wifi.setText ("x") ;
^
/src/weatherlcd1.cpp:1034:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
setCursor (7,6) ;
^
/src/weatherlcd1.cpp:1040:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Serial1.write (0x7A) ;
^
/src/weatherlcd1.cpp:1049:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print (" ") ; // clear out the symbol from it earlier position
^
/src/weatherlcd1.cpp:1060:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print(res);
^
/src/weatherlcd1.cpp:1118:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// lcd.println(soilMoisture);
^
/src/weatherlcd1.cpp:1120:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// delay(100);
^
/src/weatherlcd1.cpp:1126:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// delay(100);
^
/src/weatherlcd1.cpp:1131:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
//delay(100);
^
/src/weatherlcd1.cpp:1136:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
delay (100) ;
^
/src/weatherlcd1.cpp:1139:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
setCursor (18,11) ;
^
/src/weatherlcd1.cpp:1142:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// lcd.println(" mb");
^
/src/weatherlcd1.cpp:1145:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
^
/src/weatherlcd1.cpp:1149:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print ("+") ; // rising pressure
^
/src/weatherlcd1.cpp:1152:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print (P0 - P2) ; // show the change
^
/src/weatherlcd1.cpp:1156:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case (1):
^
/src/weatherlcd1.cpp:1160:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
{
^
/src/weatherlcd1.cpp:1165:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
break ;
^
/src/weatherlcd1.cpp:1177:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
break ;
^
/src/weatherlcd1.cpp:1179:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
{
^
/src/weatherlcd1.cpp:1193:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
}
^
/src/weatherlcd1.cpp:1198:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
delay (100) ;
^
/src/weatherlcd1.cpp:1205:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (n < 0) // for some reason -n % 60 isn't working so we have to
^
/src/weatherlcd1.cpp:1209:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (presHour[minute] - presHour[n] < -0.025)
^
/src/weatherlcd1.cpp:1217:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
^
/src/weatherlcd1.cpp:1220:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print(dailyrainin); // This is set in the rainIRQ routine
^
/src/weatherlcd1.cpp:1223:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
setCursor (16,13) ; // x,y ie. col, row
^
/src/weatherlcd1.cpp:1226:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
ftoa (snowin, res, 1) ; // This is set in fn. snowDepth
^
/src/weatherlcd1.cpp:1229:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print (" ") ; // erase any leftover digits from prev. no.
^
/src/weatherlcd1.cpp:1232:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// lcd.print(" in.");
^
/src/weatherlcd1.cpp:1235:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
if (bat < 10)
^
/src/weatherlcd1.cpp:1238:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print (res) ;
^
/src/weatherlcd1.cpp:1241:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
delay (100) ;
^
/src/weatherlcd1.cpp:981:5: warning: unused variable 'foo' [-Wunused-variable]
{
^
/src/weatherlcd1.cpp:982:7: warning: unused variable 'bar' [-Wunused-variable]
Serial.println("Bad request");
^
/src/weatherlcd1.cpp: In function 'void lcdPrintWind()':
/src/weatherlcd1.cpp:1264:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
break ;
^
/src/weatherlcd1.cpp:1267:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
break ;
^
/src/weatherlcd1.cpp:1270:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
break ;
^
/src/weatherlcd1.cpp:1273:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
}
^
/src/weatherlcd1.cpp:1276:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
^
/src/weatherlcd1.cpp:1279:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
{
^
/src/weatherlcd1.cpp:1282:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// delay(100);
^
/src/weatherlcd1.cpp:1285:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
delay (100) ;
^
/src/weatherlcd1.cpp:1288:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
delay(100);
^
/src/weatherlcd1.cpp:1291:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
setCursor (7,3) ;
^
/src/weatherlcd1.cpp:1294:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case 0:
^
/src/weatherlcd1.cpp:1297:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case 1:
^
/src/weatherlcd1.cpp:1300:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case 2:
^
/src/weatherlcd1.cpp:1303:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case 3:
^
/src/weatherlcd1.cpp:1306:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case 4:
^
/src/weatherlcd1.cpp:1309:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case 5:
^
/src/weatherlcd1.cpp:1318:28: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case 8:
^
/src/weatherlcd1.cpp:1336:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
case 14:
^
/src/weatherlcd1.cpp: In function 'void initDisplay()':
/src/weatherlcd1.cpp:1562:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
h=winterSunrise.sun_Hour();
^
/src/weatherlcd1.cpp:1566:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print ("SR: ") ;
^
/src/weatherlcd1.cpp:1570:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print(m);
^
/src/weatherlcd1.cpp:1574:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
t = (daylightSavings? winterSunrise.Set(Time.month(),Time.day()) : winterSunrise.Set(Time.month(),Time.day())); // (month,day) - january=1
^
/src/weatherlcd1.cpp:1578:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
m=winterSunrise.sun_Minute();
^
/src/weatherlcd1.cpp:1582:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print(":");
^
/src/weatherlcd1.cpp:1586:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
}
^
/src/weatherlcd1.cpp:1590:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcdPrintForecast () ;
^
/src/weatherlcd1.cpp:1593:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print("Wind: ");
^
/src/weatherlcd1.cpp:1595:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
setCursor (18,3) ;
^
/src/weatherlcd1.cpp:1599:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
^
/src/weatherlcd1.cpp:1601:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print("Peak: ");
^
/src/weatherlcd1.cpp: In function 'void lcdPrintSRSS()':
/src/weatherlcd1.cpp:1661:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Get request
^
/src/weatherlcd1.cpp:1664:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Serial.println(response.status);
^
/src/weatherlcd1.cpp:1666:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Serial.print("Application>\tHTTP Response Body: ");
^
/src/weatherlcd1.cpp:1683:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Serial.println (ms) ;
^
/src/weatherlcd1.cpp:1686:19: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Serial.println (mn) ;
^
/src/weatherlcd1.cpp:1688:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
hn = hn + tzoffset ; // Time zone correction for GMT.
^
/src/weatherlcd1.cpp:1690:23: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
hn = hn + 12 ; // Correct for hours betwen 00 and 04
^
/src/weatherlcd1.cpp:1694:31: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
delay (100) ;
^
/src/weatherlcd1.cpp: In function 'void lcdPrintForecastOld()':
/src/weatherlcd1.cpp:1726:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
lcd.print (response.status) ;
^
/src/weatherlcd1.cpp:1756:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
delay (100) ;
^
/src/weatherlcd1.cpp:1708:12: warning: unused variable 'mn' [-Wunused-variable]
^
/src/weatherlcd1.cpp: In function 'void lcdPrintForecast()':
/src/weatherlcd1.cpp:1792:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
^
/src/weatherlcd1.cpp:1831:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Example of what this returns:
^
/src/weatherlcd1.cpp:1776:12: warning: unused variable 'mn' [-Wunused-variable]
hn = hs.indexOf (",") ;
^
/src/weatherlcd1.cpp: In function 'void BTcheck()':
/src/weatherlcd1.cpp:1959:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
d = max (77.4 - d, 0) ;
^
/src/weatherlcd1.cpp:1961:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
// Serial.println (d) ;
^
lib/HttpClient/src/HttpClient.cpp: In member function 'void HttpClient::request(http_request_t&, http_response_t&, http_header_t*, const char*)':
lib/HttpClient/src/HttpClient.cpp:176:19: warning: unused variable 'firstRead' [-Wunused-variable]
unsigned long firstRead = millis();
^
In file included from lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.cpp:46:0:
lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.h:66:0: warning: "_BV" redefined [enabled by default]
#define _BV(bit) (1 << (bit))
^
In file included from ./inc/application.h:92:0,
from lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.h:46,
from lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.cpp:46:
../wiring/inc/spark_wiring_arduino.h:131:0: note: this is the location of the previous definition
#define _BV(x) (((uint32_t)1) << (x))
^
lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.cpp: In member function 'float Weather::readPressure()':
lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.cpp:320:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
if(IIC_Read(STATUS) & (1<<2) == 0) toggleOneShot(); //Toggle the OST bit causing the sensor to immediately take another reading
^
lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.cpp:324:25: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
while(IIC_Read(STATUS) & (1<<2) == 0)
^
lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.cpp: In member function 'float Weather::readBaroTemp()':
lib/SparkFun_Photon_Weather_Shield_Library/src/SparkFun_Photon_Weather_Shield_Library.cpp:360:22: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
if(IIC_Read(STATUS) & (1<<1) == 0) toggleOneShot(); //Toggle the OST bit causing the sensor to immediately take another reading
^
lib/Sunrise/src/Sunrise.cpp: In member function 'int Sunrise::Compute(unsigned char, unsigned char, int)':
lib/Sunrise/src/Sunrise.cpp:101:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
../../../build/target/user/platform-6/libuser.a(NexHardware.o): In function `sendCommand(char const*)':
lib/ITEADLIB_Nextion/src/NexHardware.cpp:189: undefined reference to `nexSerial'
../../../build/target/user/platform-6/libuser.a(NexHardware.o): In function `recvRetCommandFinished(unsigned long)':
lib/ITEADLIB_Nextion/src/NexHardware.cpp:260: undefined reference to `nexSerial'
collect2: error: ld returned 1 exit status
make: *** [5a06c856af75cf897ab96327fb06fcf1056fbbdb72661ec4fdb666ab9e11.elf] Error 1