From 9c389117c4e5386a94fb8697403d3dd9280e9b2a Mon Sep 17 00:00:00 2001 From: "A.M. Rowsell" Date: Tue, 30 Jun 2026 06:47:32 -0400 Subject: [PATCH] credentials: clean up a define in main.c --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index f9abc99..bc623f0 100644 --- a/src/main.c +++ b/src/main.c @@ -18,9 +18,9 @@ * the readings to Adafruit IO over MQTT using the Pico W. ******************************************************************************/ -#include "credentials.h" #include "aht.h" #include "bmp.h" +#include "credentials.h" #include "ens.h" #include "hardware/gpio.h" #include "hardware/i2c.h" @@ -39,7 +39,6 @@ #define I2C1_SDA_PIN 18 // MQTT and WiFi defines #define ADAFRUIT_IO_HOST "io.adafruit.com" -#define ADAFRUIT_IO_PASSWORD ADAFRUIT_IO_KEY #define MQTT_KEEP_ALIVE_SECONDS 60 static void mqtt_connection_cb(mqtt_client_t *client, void *arg, @@ -78,7 +77,8 @@ int main(void) { // MQTT Topics static const char temp_topic[] = ADAFRUIT_IO_USERNAME "/feeds/ensaht.temperature"; - static const char humi_topic[] = ADAFRUIT_IO_USERNAME "/feeds/ensaht.humidity"; + static const char humi_topic[] = + ADAFRUIT_IO_USERNAME "/feeds/ensaht.humidity"; static const char aqi_topic[] = ADAFRUIT_IO_USERNAME "/feeds/ensaht.aqi"; static const char tvoc_topic[] = ADAFRUIT_IO_USERNAME "/feeds/ensaht.tvoc"; static const char etoh_topic[] = ADAFRUIT_IO_USERNAME "/feeds/ensaht.etoh"; @@ -99,7 +99,7 @@ int main(void) { struct mqtt_connect_client_info_t mqtt_client_info = { .client_id = ADAFRUIT_IO_USERNAME, .client_user = ADAFRUIT_IO_USERNAME, - .client_pass = ADAFRUIT_IO_PASSWORD, + .client_pass = ADAFRUIT_IO_KEY, .keep_alive = MQTT_KEEP_ALIVE_SECONDS, }; // setup stdio