Search found 22 matches

by amehta
Sun Oct 14, 2018 3:41 am
Forum: General Discussion
Topic: File upload using socket succeeds but not with esp_http_client
Replies: 10
Views: 3585

Re: File upload using socket succeeds but not with esp_http_client

I am using this API in loop to send file after using "esp_client_open". Still it is getting failed!
WiFive wrote:

Code: Select all

esp_http_client_write(client, buffer, MAX_HTTP_RECV_BUFFER);
by amehta
Sat Oct 13, 2018 7:48 pm
Forum: General Discussion
Topic: File upload using socket succeeds but not with esp_http_client
Replies: 10
Views: 3585

File upload using socket succeeds but not with esp_http_client

Following file upload using socket lib succeeds : // Socket opening struct sockaddr_in tcpServerAddr; tcpServerAddr.sin_addr.s_addr = inet_addr(gateway.ip); tcpServerAddr.sin_family = AF_INET; tcpServerAddr.sin_port = htons(atoi(PORT)); s = socket(AF_INET, SOCK_STREAM, 0); if (s < 0) { ESP_LOGE(TAG,...
by amehta
Sat Oct 13, 2018 3:31 pm
Forum: ESP32 IDF
Topic: File upload from esp32 using esp_http_client possible?
Replies: 2
Views: 1355

File upload from esp32 using esp_http_client possible?

Can esp_http_client send file from esp32 to any server? I cannot find anything on this. Thanks
by amehta
Fri Aug 31, 2018 1:19 pm
Forum: General Discussion
Topic: ESP32 Mesh functionality on MQTT
Replies: 1
Views: 2511

ESP32 Mesh functionality on MQTT

Hi,

I couldn't find anything related to esp32 mesh functionality based on ESP-IDF with MQTT. Can someone please confirm that it is either under development and there is a probable release date associated with it or is it already there?

Thanks
by amehta
Sun Jun 10, 2018 12:42 pm
Forum: General Discussion
Topic: Problems in syncing MCPWM output for dimming purpose
Replies: 9
Views: 3220

Re: Problems in syncing MCPWM output for dimming purpose

Okay, so you mean, when sync happens if my duty cycle is 60% then TRIAC should not conduct for 4ms(40% off time) and then start for 6ms. Will try that. Also can sync pin be defined as interrupt and set its interrupt type to falling edge/rising edge?? Because output from my circuit is a sine wave and...
by amehta
Sun Jun 10, 2018 11:46 am
Forum: General Discussion
Topic: Problems in syncing MCPWM output for dimming purpose
Replies: 9
Views: 3220

Re: Problems in syncing MCPWM output for dimming purpose

So if my duty resolution is say 60%, then my MCPWM should fire the TRIAC on the zero crossing optocoupler interrupt for 6 ms (60% of 10 ms) and then close the triac gate for the remaining 4 ms till the next interrupt comes and this process is repeated forever. I posted that drawing because you have...
by amehta
Sat Jun 09, 2018 9:03 pm
Forum: General Discussion
Topic: Problems in syncing MCPWM output for dimming purpose
Replies: 9
Views: 3220

Re: Problems in syncing MCPWM output for dimming purpose

@WiFive Thank you for the reply. I understand this, hence I am using MCPWM unit of ESP32 with zero crossing interrupt signal as "sync" signal. My sync signal is currently the output of the optocoupler which is giving me a positive sign wave(its zero is the zero crossing). However I suspect the "sync...
by amehta
Sat Jun 09, 2018 6:56 pm
Forum: General Discussion
Topic: Problems in syncing MCPWM output for dimming purpose
Replies: 9
Views: 3220

Re: Problems in syncing MCPWM output for dimming purpose

Attaching circuit diagram with this comment. Also I have opened another post with sync question https://esp32.com/viewtopic.php?f=2&t=6033
by amehta
Sat Jun 09, 2018 5:29 pm
Forum: General Discussion
Topic: Sync pin problems on the MCPWM module
Replies: 1
Views: 1269

Sync pin problems on the MCPWM module

Is there a way to set MCPWM timers to reset on only rising edge/falling edge/LOW/HIGH incoming signal. I couldn't find a way on the esp read the docs as well as on manual. Currently my timer get reset on both rising and falling edge of the incoming signal. I want to reset it only when the signal is ...
by amehta
Wed Jun 06, 2018 6:57 pm
Forum: General Discussion
Topic: Problems in syncing MCPWM output for dimming purpose
Replies: 9
Views: 3220

Re: Problems in syncing MCPWM output for dimming purpose

any directions on this please?