Skip to content

PubSubClient (PASS) #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
woolseyj opened this issue Jun 29, 2023 · 3 comments
Closed

PubSubClient (PASS) #2

woolseyj opened this issue Jun 29, 2023 · 3 comments

Comments

@woolseyj
Copy link

Compilation of the PubSubClient library fails with the following error:
"error: 'strnlen' was not declared in this scope" and suggests using 'strlen' as an alternative.

It appears the strnlen() function is not defined for the Renesas architecture.

I tried to compile the mqtt_basic example sketch with a few modifications related to changing the Ethernet library for the WiFiS3 library.

The verbose log file is enclosed.

mqtt_basic_compile_log.txt

@tony2feathers
Copy link

I made a fork of PubSubClient which addresses these issues. I have tested it and have managed to get it to connect to my wifi and connect to the test.mosquitto.org mqtt broker. I am having problems with my local broker for some reason, and I'm unsure what the cause is, but the new forked library works as far as I can tell. https://github.com/tony2feathers/pubsubclient_UnoR4

@woolseyj woolseyj changed the title PubSubClient (FAIL) PubSubClient (PASS) Sep 8, 2023
@woolseyj
Copy link
Author

woolseyj commented Sep 8, 2023

The issue was resolved in the ArduinoCore-renesas library. The PubSubClient library is now working properly with the Arduino R4 WiFi board.

@woolseyj woolseyj closed this as completed Sep 8, 2023
@Hannes7eicher
Copy link
Contributor

I added it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants