mirror of
https://github.com/rodneyosodo/smart-farm-africastalking-hackathon.git
synced 2026-06-23 04:10:17 +00:00
✏️ Commenting code - send humidity
This commit is contained in:
@@ -399,6 +399,7 @@ void publishMessage(char *payload, const char *topic)
|
||||
|
||||
void sendHumidity(void)
|
||||
{
|
||||
// Sends humidity data to the broker
|
||||
humidity = readHum();
|
||||
snprintf(buffer, sizeof(buffer), "%.3f", humidity);
|
||||
publishMessage(buffer, humidityTopic);
|
||||
|
||||
Reference in New Issue
Block a user