Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to subscribe the topic #25

Open
yashram96 opened this issue Apr 29, 2021 · 1 comment
Open

how to subscribe the topic #25

yashram96 opened this issue Apr 29, 2021 · 1 comment

Comments

@yashram96
Copy link

as far i understand for publishing "Esp32MQTTClient_SendEventInstance()" function is used . But how to subscribe the topic . Please share the details .

@pchevallier
Copy link

The function: "EVENT_INSTANCE* message = Esp32MQTTClient_Event_Generate(messagePayload, MESSAGE);" create the payload with all the json content in it that will be published to its Azure IoT Hub using the IoT device referenced in:
static const char* connectionString = "";

Once published, IoT Hub will direct the message to any services subscribed to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants