Thanks, Max
This is the error message:
Code: Select all
01_SMS_Send.ino.cpp:(.text.setup+0x16): undefined reference to `LTE_Shield::begin(SoftwareSerial&, unsigned long)'
collect2.exe: error: ld returned 1 exit status
Using library SparkFun_LTE_Shield_Arduino_Library at version 1.2.0 in folder: E:\Affinity\Water Device\libraries\SparkFun_LTE_Shield_Arduino_Library
Using library SoftwareSerial at version 1.0 in folder: E:\Documents\ArduinoData\packages\STM32\hardware\stm32\1.9.0\libraries\SoftwareSerial
Using library SrcWrapper at version 1.0.1 in folder: E:\Documents\ArduinoData\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper
exit status 1
Error compiling for board Nucleo-64.
Code: Select all
#define LTE_SHIELD_SOFTWARE_SERIAL_ENABLED
//Click here to get the library: http://librarymanager/All#SparkFun_LTE_Shield_Arduino_Library
#include <SparkFun_LTE_Shield_Arduino_Library.h>
// Create a SoftwareSerial object to pass to the LTE_Shield library
SoftwareSerial lteSerial(8, 9);
// Create a LTE_Shield object to use throughout the sketch
LTE_Shield lte;
// Set the cell phone number to be texted
String DESTINATION_NUMBER = "11234567890";
void setup() {
Serial.begin(9600);
if ( lte.begin(lteSerial, 9600) ) {
Serial.println(F("LTE Shield connected!"));
}
Serial.println(F("Type a message. Send a Newline (\\n) to send it..."));
}
Code: Select all
#ifdef LTE_SHIELD_SOFTWARE_SERIAL_ENABLED
boolean LTE_Shield::begin(SoftwareSerial &softSerial, unsigned long baud)
{
LTE_Shield_error_t err;
_softSerial = &softSerial;
err = init(baud);
if (err == LTE_SHIELD_ERROR_SUCCESS)
{
return true;
}
return false;
}
#endif