Search found 13 matches

by sheikhumar93
Sun Aug 26, 2018 12:07 pm
Forum: Hardware
Topic: Cannot run app on ESP32 from an external battery
Replies: 6
Views: 599

Re: Cannot run app on ESP32 from an external battery

Hi @loboris, if I connect my 3.4V connection to 3v3, where do I connect my I2C sensor's VCC then?
by sheikhumar93
Mon Aug 20, 2018 8:02 am
Forum: Hardware
Topic: Cannot run app on ESP32 from an external battery
Replies: 6
Views: 599

Re: Cannot run app on ESP32 from an external battery

To the VIN and GND pins.
@kolban thanks for the reply, unfortunately I don't have access to a USB->UART connector right now.
by sheikhumar93
Sun Aug 19, 2018 7:32 pm
Forum: Hardware
Topic: Cannot run app on ESP32 from an external battery
Replies: 6
Views: 599

Cannot run app on ESP32 from an external battery

I am trying to run an ESP-IDF app on my ESP32 that sends sensor readings to a web server on my Ubuntu machine, I have attached it to 2 batteries and pins to Vin and Gnd with 3.40V. When I connect the ESP32 to a USB port on my PC, it transmits data just fine to my server. But when I connect it to the...
by sheikhumar93
Wed Aug 15, 2018 5:47 pm
Forum: ESP32 IDF
Topic: SPIFFS: spiffs partition could not be found
Replies: 1
Views: 211

SPIFFS: spiffs partition could not be found

My spiffs code taken from the example was running absolutely fine until I ran make erase_flash partition_table flash monitor and now when I run my code again it says : E (16826) SPIFFS: spiffs partition could not be found E (16831) Example: Failed to find SPIFFS partition format_if_mount_failed=true...
by sheikhumar93
Wed Aug 15, 2018 7:20 am
Forum: ESP32 IDF
Topic: Sending payload to AWS IOT using MQTT causes an error
Replies: 11
Views: 516

Re: Sending payload to AWS IOT using MQTT causes an error

Increasing the StackDepth actually solves this issue, thanks for the help kolban.
Hey John A, sorry for being a complete noob, but what do you mean by the client variable? I am not familiar with the term, can you explain it a bit? Running a Google search didnt return anything meaningful.
by sheikhumar93
Tue Aug 14, 2018 8:03 pm
Forum: ESP32 IDF
Topic: Sending payload to AWS IOT using MQTT causes an error
Replies: 11
Views: 516

Re: Sending payload to AWS IOT using MQTT causes an error

Hey kolban, I have narrowed down the error message that is the source of this problem, I have thrown in the printf flush(stdout) like you recommended, thanks for the tip. rc returns a value of -33 after this line: rc = aws_iot_mqtt_publish(&client, TOPIC, TOPIC_LEN, ¶msQOS0); I looked around at ...
by sheikhumar93
Tue Aug 14, 2018 6:45 pm
Forum: ESP32 IDF
Topic: Sending payload to AWS IOT using MQTT causes an error
Replies: 11
Views: 516

Re: Sending payload to AWS IOT using MQTT causes an error

Yeah I have changed this to strlen and found out the mistake, strlen returned 590, thats way over 100 bytes. But now I have updated the code where instead of using a C char[] I now use a C++ string as mentioned in my updated code. But the same problem still persists.
by sheikhumar93
Tue Aug 14, 2018 6:21 pm
Forum: ESP32 IDF
Topic: Sending payload to AWS IOT using MQTT causes an error
Replies: 11
Views: 516

Re: Sending payload to AWS IOT using MQTT causes an error

Hi kolban, sorry for not adding the example link in my post and thank you for the reply. You were right, cPayload was defined as char cPayload[100] I got rid of all the C code and wrote new code to send the payload inspired by your own aws_iot cpp utility over here: https://github.com/nkolban/esp32-...
by sheikhumar93
Tue Aug 14, 2018 9:38 am
Forum: ESP32 IDF
Topic: Sending payload to AWS IOT using MQTT causes an error
Replies: 11
Views: 516

Sending payload to AWS IOT using MQTT causes an error

I have been trying to send sensor readings that I have gathered on a spiffs file using the subscribe publish example. AWS docs say that the maximum size for the payload is 128kb. When I try to send the default message "hello from ESP32 (QOS0) : 0" in the example it gets posted just fine and I can se...

Go to advanced search