mirror of
https://github.com/rodneyosodo/smart-farm-africastalking-hackathon.git
synced 2026-06-23 04:10:17 +00:00
✏️ Commenting code - publish message
This commit is contained in:
@@ -387,6 +387,7 @@ void connectMqtt(void)
|
||||
|
||||
void publishMessage(char *payload, const char *topic)
|
||||
{
|
||||
// Publishes messages to the broker
|
||||
MQTT::Message message;
|
||||
message.qos = MQTT::QOS1;
|
||||
message.payload = (void *)payload;
|
||||
|
||||
Reference in New Issue
Block a user