-
Notifications
You must be signed in to change notification settings - Fork 879
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
mqtt_client_test #498
base: develop
Are you sure you want to change the base?
mqtt_client_test #498
Conversation
This implementation is working great. I tested your publisher sample with a subscriber from this repository (running on a Linux machine) simple_subscriber.c. I configured your code to publish to the address "35.156.49.117" (broker.hivemq.com) on port 1883, and the MQTT-C subscriber successfully listened to the transmitted temperature data. Thank you, ellebi2000. |
I have removed the comment in Italian and others that are not strictly necessary. |
Perhaps this should be in EDIT: Also, do you really need separate |
@ellebi2000 If you can confirm that we're ok to release this with the same license as everything else (BSD-3-Clause license), I'll address the review comments and get this merged. Thanks. |
Yes, I confirm that this code can be released under the BSD-3-Clause license. |
Fix review comments and build warnings. Use MQTT_SERVER build variable instead of hard coding IP address. Make a DNS request for the server. Use async timer for publishing the temperature.
Move the code down one level
print, just print the message to stdout ping, publish uptime to pong exit, quit the client
Add some defines for some magic numbers
Disabled by default with MQTT_UNIQUE_TOPIC
976f329
to
3593551
Compare
I rebased the PR |
@peterharperuk Amazing ! |
Change /pong to /uptime Display a message if MQTT_SERVER is not defined Put picow_ in the name like the other examples Add details to the readme!
This PR introduces functionality for temperature monitoring and LED control on a Raspberry Pi Pico W using MQTT. The key features include:
Temperature Monitoring:
LED Control:
WiFi and MQTT Configuration:
MQTT Callbacks: