Replies: 4 comments
-
Well, the error message is clear: You are calling a function that expects other parameters than you are sending. If you look at PubSubClient.h, you'll see that there are four different ways to call "publish":
Yours is of the structure |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, it makes sense now.
|
Beta Was this translation helpful? Give feedback.
-
I don't know if you can simply convert a string to a uint8_t like that, so maybe that's the problem. But since nothing of your problems has anything to do with BSB-LAN, I'll close this here. You can certainly find help in more relevant coding forums. |
Beta Was this translation helpful? Give feedback.
-
I understand, you can close my question. |
Beta Was this translation helpful? Give feedback.
-
Hello,
This is not a bug or request, the problem is on my side.
I would like to publish MQTT message at the end of the setup (run one time at the end of the boot) and I use the command:
MQTTPubSubClient->publish(Topic.c_str(), output, n, true);
But it fails.
BSB-LAN-master\BSB_LAN\BSB_LAN_custom_setup.h:50:66: error: no matching function for call to 'PubSubClient::publish(const char*, String&, size_t&, bool)'
Is it due to the MQTT client which is not already declared? Or I miss something?
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions