Search found 31 matches

by Zeni241
Fri May 31, 2019 5:31 am
Forum: ESP32 IDF
Topic: Same values whether I dip the moisture sensor in water or not
Replies: 2
Views: 130

Re: Same values whether I dip the moisture sensor in water or not

Thanks a lot @ ESP_Dazz , changing ADC attenuation configuration was game changer. :D :D Now with capacitive moisture sensor and static const adc_atten_t atten6 = ADC_ATTEN_DB_6; With out water: No.1, Raw: 4095 Voltage: 1877mV No.2, Raw: 4095 Voltage: 1877mV No.3, Raw: 4095 Voltage: 1877mV No.4, Raw...
by Zeni241
Wed May 29, 2019 1:36 pm
Forum: ESP32 IDF
Topic: Same values whether I dip the moisture sensor in water or not
Replies: 2
Views: 130

Same values whether I dip the moisture sensor in water or not

I am following example esp-idf/examples/peripherals/adc/ and copied exactly the code in adc1_example_main.c in my project. But somehow I am getting same values as below whether I dip the moisture sensor in water or not. eFuse Two Point: NOT supported eFuse Vref: NOT supported Characterized using Def...
by Zeni241
Tue Mar 19, 2019 4:53 am
Forum: ESP32 IDF
Topic: MQTT over SSL - Mosquitto
Replies: 9
Views: 1415

Re: MQTT over SSL - Mosquitto

Try this

Code: Select all

 
         uri = "mqtts://iot.eclipse.org:8883"
        .event_handle = mqtt_event_handler,
        .cert_pem = (const char * ) server_cert_pem_start,
        .username = "your user name",
        .password = "your password",
       
by Zeni241
Fri Mar 15, 2019 2:53 pm
Forum: ESP32 IDF
Topic: How can I send empty mqtt message to broker to delete some retained message?
Replies: 1
Views: 412

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

I was missing setting retained flag!
Now following deleted retained message on broker:
esp_mqtt_client_publish(mqttclient, "mytopic"," ",0, 0, 1)
by Zeni241
Fri Mar 15, 2019 12:20 pm
Forum: ESP32 IDF
Topic: How can I send empty mqtt message to broker to delete some retained message?
Replies: 1
Views: 412

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

How can I send empty mqtt message to broker to delete some retained message?
I tried following but it is not working:

Code: Select all

esp_mqtt_client_publish(mqttclient, "mytopic"," ",0, 0, 0);
esp_mqtt_client_publish(mqttclient, "mytopic",' ',0, 0, 0);
esp_mqtt_client_publish(mqttclient, "mytopic",NULL,0, 0, 0);
by Zeni241
Thu Mar 07, 2019 9:27 am
Forum: ESP32 IDF
Topic: What can I do to get consistent readings from moisture sensor?
Replies: 3
Views: 423

Re: What can I do to get consistent readings from moisture sensor?

Attaching a 0.1 micro farad non polar capacitor between GPIO and sensor made a lot of difference. Can someone please lead me to industrial moisture sensor circuit resources? Reading while moisture sensor in air: eFuse Two Point: NOT supported eFuse Vref: Supported Characterized using eFuse Vref Raw ...
by Zeni241
Thu Mar 07, 2019 3:28 am
Forum: ESP32 IDF
Topic: What can I do to get consistent readings from moisture sensor?
Replies: 3
Views: 423

Re: What can I do to get consistent readings from moisture sensor?

Thanks for reply. Yes, I want to know why it is changing so wildly when the condition of moisture sensor is static.
Shouldn't it give same value ideally?
by Zeni241
Wed Mar 06, 2019 12:23 pm
Forum: ESP32 IDF
Topic: What can I do to get consistent readings from moisture sensor?
Replies: 3
Views: 423

What can I do to get consistent readings from moisture sensor?

I am using example of adc in asp idf 3.2, as given here https://github.com/espressif/esp-idf/tree/release/v3.2/examples/peripherals/adc . I am using Esp32 devkit v1 and my moisture sensor is identical to this https://www.aliexpress.com/item/Free-Shipping-Soil-Hygrometer-Humidity-Detection-Module-Moi...
by Zeni241
Wed Feb 20, 2019 3:40 am
Forum: ESP32 IDF
Topic: Why ESP-IDF is always way behind ARDUINO environment
Replies: 6
Views: 713

Re: Why ESP-IDF is always way behind ARDUINO environment

Thanks ESP_Angus. For the benefit of any one following this thread, I copy lines from pages you referred. If a required feature is not yet available in a stable release, but you don’t want to use the master branch, it is possible to check out a pre-release version or a release branch. In stability t...

Go to advanced search