pubsubclient
pubsubclient copied to clipboard
issue in the publish function
.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);
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.