Error with ESP32 subscribing to an MQTT broker

Using library DHT sensor library for ESPx at version 1.18 in folder: C:\Users\USER\Documents\Arduino\libraries\DHT_sensor_library_for_ESPx
Using library WiFi at version 2.0.0 in folder: C:\Users\USER\Documents\Arduino\libraries\WiFi
Using library ThingsBoard at version 0.7.1 in folder: C:\Users\USER\Documents\Arduino\libraries\ThingsBoard
Using library PubSubClient at version 2.8 in folder: C:\Users\USER\Documents\Arduino\libraries\PubSubClient
Using library ArduinoJson at version 6.19.4 in folder: C:\Users\USER\Documents\Arduino\libraries\ArduinoJson
Using library Update at version 2.0.0 in folder: C:\Users\USER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5\libraries\Update
exit status 1

Compilation error: no matching function for call to 'ThingsBoardSized<>::RPC_Subscribe(RPC_Callback [3], unsigned int)'

This is the function:
// Subscribe for RPC, if needed
if (!subscribed) {
Serial.println("Subscribing for RPC... ");

// Perform a subscription. All consequent data processing will happen in
// callbacks as denoted by callbacks[] array.
if (!tb.RPC_Subscribe(callbacks, COUNT_OF(callbacks))) {
  Serial.println("Failed to subscribe for RPC");
  return;
}

Serial.println("Subscribe done");
subscribed = true;

}

I got the code example from this website:

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the Installation & Troubleshooting category.

if (!tb.RPC_Subscribe(callbacks, String(COUNT_OF(callbacks)).c_str() )
might be the thing you need?

Hey, thanks for the reply, but unfortunately the error was still the same