Skip to content

Files

Latest commit

2e7648d · Jun 10, 2024

History

History

N2_WiFi_MQTT_Webhook_Adafruit

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 29, 2024
Jun 10, 2024
May 29, 2024
May 29, 2024

Using MQTT and Webhooks in Adaruit IO

This project is the code from Adafruit IO (MQTT & Webhooks) tutorial on Raspberry Pi Pico W MicroPython. It shows how to connect to the board to WiFi, then generate a random number between 0 - 100 and submit it to the Adafruit MQTT server to publish it in a Line Chart. If the submitted value is greater than 80 it triggers an alarm action and forwards the value to Discord. It also subscribes to an MQTT topic in Adafruit and by changing a toggle switch we can control the onboard led on Raspberry Pi Pico (on/off). All the keys can be set in lib/keys.py