'error: no matching function for call to 'MQTTClient::MQTTClient(int)' MQTTClient client = MQTTClient(256);

I'm working on an IoT project. ESP32 with AWS IoT Core.

I followed https://catalog.us-east-1.prod.workshops.aws/workshops/5b127b2f-f879-48b9-9dd0-35aff98c7bbc/en-US/module3/configure-esp32 for doing my project, But I received an Error message.

"LampProject:33:35: error: no matching function for call to 'MQTTClient::MQTTClient(int)' MQTTClient client = MQTTClient(256); "



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source