vittorioexp / Sim800L-Arduino-Library-revised

The SIM800L Arduino Library is a simple and easy-to-use library for the SIM800L module, allowing for quick and efficient communication with the module using the Arduino platform.
GNU General Public License v3.0
101 stars 46 forks source link

problem with GSM.sendSMS #16

Closed Byt3x closed 5 years ago

Byt3x commented 5 years ago

error=GSM.sendSms(numberSms, text);

This line of code gives me this error: no matching function for call to 'Sim800L::sendSms(String&, char*&)'

The number is set up as a string, and the text as a char* array.

Any idea what the problem might be?

(The whole code is pretty similar to the library's example one)

Byt3x commented 5 years ago

Solved it by myself setting both the number and message to a char* as in the example... The wiki needs to be updated, it says to set both the arguments as String