Search found 4 matches

by regan.xavier
Tue Sep 10, 2024 12:32 pm
Forum: General Discussion
Topic: Can esp_random() return single digit? Can it return the same random number more than once?
Replies: 5
Views: 1764

Can esp_random() return single digit? Can it return the same random number more than once?

Hi,

I have a requirement to generate 10 digits random value in my esp32 project.

I would like to know, does this esp_random() can return a single digit by any chance?

And can the function returns the same value more than once?
by regan.xavier
Fri Sep 06, 2024 4:42 am
Forum: ESP-IDF
Topic: How can I send empty mqtt message to broker to delete some retained message?
Replies: 5
Views: 4596

Re: How can I send empty mqtt message to broker to delete some retained message?

Thanks chegewara for the response. I removed the single space in the payload.

And in the AWS after giving the access to receive zero-payloads, it got fixed.
by regan.xavier
Thu Sep 05, 2024 7:02 am
Forum: ESP-IDF
Topic: How can I send empty mqtt message to broker to delete some retained message?
Replies: 5
Views: 4596

Re: How can I send empty mqtt message to broker to delete some retained message?

I am facing an issue while trying to delete a retained message from an MQTT topic. I use the following code to publish an empty message with the retained flag to clear the retained message on the topic: esp_mqtt_client_publish(mqtt_client, topic, " ", 0, 0, 1); However, after calling this function, ...