adding mqtt resources
This commit is contained in:
1 parent
54476f6d7b
commit
b683ed2b94
13 files changed
+351
-112
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
void setup() {
|
||||
// Initialize serial communication at 9600 baud
|
||||
Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
// Simulate a temperature reading (replace with actual sensor logic if needed)
|
||||
float temperature = 25.5; // Example value in Celsius
|
||||
|
||||
// Print the temperature message to the serial monitor
|
||||
Serial.print("Temperature: ");
|
||||
Serial.print(temperature);
|
||||
Serial.println(" °C");
|
||||
|
||||
// Wait for 5 seconds before sending the next message
|
||||
delay(5000);
|
||||
}
|
||||
Reference in new issue
Block a user