Using sim808.sendSMS function in void loop

Hello guys,
i'm reading temperature values from a DHT22 sensor and i need to send these values via dfrobot sim808 module if it surpasses a certain temperature.
i've searched a lot on various site i could not solve my problem.
It works only when the message is already defined before entering the void loop.
Otherwise if the content of the message has changed im having an error reporting "no matching function for dfrobot_SIM808::sendSMS(const char[],String&)".
Help please.
Thank you

You appear to be trying to passing a String object for the second argument and the compiler is telling you that it doesn't know of a function that takes a String object argument. Try using character arrays for both arguments. It would be easier to be more specific if you posted your sketch.