pubsubclient icon indicating copy to clipboard operation
pubsubclient copied to clipboard

issue in the publish function

Open jogueji opened this issue 8 months ago • 1 comments

.pio\libdeps\nodemcuv2_dev\PubSubClient\src\PubSubClient.cpp: In member function 'boolean PubSubClient::publish_P(const char*, const uint8_t*, unsigned int, boolean)': .pio\libdeps\nodemcuv2_dev\PubSubClient\src\PubSubClient.cpp:523:16: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 523 | return (rc == expectedLength);

jogueji avatar Apr 02 '25 16:04 jogueji

Yeah, had this several times now. You may use https://github.com/hmueller01/pubsubclient3 (you will find it on Arduino or PlatformIO library as well). It is fixed there.

hmueller01 avatar Apr 02 '25 19:04 hmueller01