If changing from true to false library compiles, if changed to true then fails.
Using the following
ESP32 with SIM868
TinyGSM Library 0.11.5 example GSMallFunctions
Changes made as follows
/
Tests enabled
/
define TINY_GSM_TEST_SMS false
// Set phone numbers, if you want to test SMS and Calls
define SMS_TARGET "+4477xxxxxxxx"
define CALL_TARGET "+4477xxxxxxxx
Compile error showing 'protected within this context'
C:\Users\Ian\Documents\Arduino\ESP32gsmAllFunctions\ESP32gsmAllFunctions.ino: In function 'void loop()':
ESP32gsmAllFunctions:333:44: error: 'bool TinyGsmSMS::sendSMS_UTF8_begin(const char) [with modemType = TinyGsmSim800]' is protected within this context
res = modem.sendSMS_UTF8_begin(SMS_TARGET);
^
In file included from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClientSIM800.h:24,
from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClient.h:13,
from C:\Users\Ian\Documents\Arduino\ESP32gsmAllFunctions\ESP32gsmAllFunctions.ino:97:
C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmSMS.tpp:185:8: note: declared protected here
bool sendSMS_UTF8_begin(const char const number) {
^~~~~~
ESP32gsmAllFunctions:335:45: error: 'TinyGsmSMS::UTF8Print TinyGsmSMS::sendSMS_UTF8_stream() [with modemType = TinyGsmSim800]' is protected within this context
auto stream = modem.sendSMS_UTF8_stream();
^
In file included from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClientSIM800.h:24,
from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClient.h:13,
from C:\Users\Ian\Documents\Arduino\ESP32gsmAllFunctions\ESP32gsmAllFunctions.ino:97:
C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmSMS.tpp:201:13: note: declared protected here
UTF8Print sendSMS_UTF8_stream() {
^~~~~~~
ESP32gsmAllFunctions:338:34: error: 'bool TinyGsmSMS::sendSMS_UTF8_end() [with modemType = TinyGsmSim800]' is protected within this context
res = modem.sendSMS_UTF8_end();
^
In file included from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClientSIM800.h:24,
from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClient.h:13,
from C:\Users\Ian\Documents\Arduino\ESP32gsmAllFunctions\ESP32gsmAllFunctions.ino:97:
C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmSMS.tpp:196:8: note: declared protected here
bool sendSMS_UTF8_end() {
^~~~
Using library TinyGSM at version 0.11.5 in folder: C:\Users\Ian\Documents\Arduino\libraries\TinyGSM
exit status 1
'bool TinyGsmSMS::sendSMS_UTF8_begin(const char*) [with modemType = TinyGsmSim800]' is protected within this context
If changing from true to false library compiles, if changed to true then fails.
Using the following ESP32 with SIM868 TinyGSM Library 0.11.5 example GSMallFunctions
Changes made as follows / Tests enabled /
define TINY_GSM_TEST_SMS false
// Set phone numbers, if you want to test SMS and Calls
define SMS_TARGET "+4477xxxxxxxx"
define CALL_TARGET "+4477xxxxxxxx
Compile error showing 'protected within this context'
C:\Users\Ian\Documents\Arduino\ESP32gsmAllFunctions\ESP32gsmAllFunctions.ino: In function 'void loop()': ESP32gsmAllFunctions:333:44: error: 'bool TinyGsmSMS::sendSMS_UTF8_begin(const char) [with modemType = TinyGsmSim800]' is protected within this context
res = modem.sendSMS_UTF8_begin(SMS_TARGET);
^
In file included from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClientSIM800.h:24,
from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClient.h:13,
from C:\Users\Ian\Documents\Arduino\ESP32gsmAllFunctions\ESP32gsmAllFunctions.ino:97:
C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmSMS.tpp:185:8: note: declared protected here
bool sendSMS_UTF8_begin(const char const number) {
^::UTF8Print TinyGsmSMS::sendSMS_UTF8_stream() [with modemType = TinyGsmSim800]' is protected within this context
auto stream = modem.sendSMS_UTF8_stream();
^
In file included from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClientSIM800.h:24,
from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClient.h:13,
from C:\Users\Ian\Documents\Arduino\ESP32gsmAllFunctions\ESP32gsmAllFunctions.ino:97:
C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmSMS.tpp:201:13: note: declared protected here
UTF8Print sendSMS_UTF8_stream() {
^::sendSMS_UTF8_end() [with modemType = TinyGsmSim800]' is protected within this context
res = modem.sendSMS_UTF8_end();
^
In file included from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClientSIM800.h:24,
from C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmClient.h:13,
from C:\Users\Ian\Documents\Arduino\ESP32gsmAllFunctions\ESP32gsmAllFunctions.ino:97:
C:\Users\Ian\Documents\Arduino\libraries\TinyGSM\src/TinyGsmSMS.tpp:196:8: note: declared protected here
bool sendSMS_UTF8_end() {
^::sendSMS_UTF8_begin(const char*) [with modemType = TinyGsmSim800]' is protected within this context
~~~~~ ESP32gsmAllFunctions:335:45: error: 'TinyGsmSMS~~~~~~ ESP32gsmAllFunctions:338:34: error: 'bool TinyGsmSMS~~~Using library TinyGSM at version 0.11.5 in folder: C:\Users\Ian\Documents\Arduino\libraries\TinyGSM exit status 1 'bool TinyGsmSMS