Search found 9 matches

by Wamor45
Fri Apr 21, 2017 8:32 pm
Forum: General Discussion
Topic: recvfrom returns -1 with error-code 11
Replies: 2
Views: 7412

Re: recvfrom returns -1 with error-code 11

Thank you WiFive for your response. I looked at the link you mentioned and decided not to use loop-back but send information to my gateway. My gateway is returning the data back again then. Please find below my program. I don't receive anything at my gateway and nothing is returned. Any clues what c...
by Wamor45
Wed Apr 19, 2017 8:58 pm
Forum: General Discussion
Topic: recvfrom returns -1 with error-code 11
Replies: 2
Views: 7412

recvfrom returns -1 with error-code 11

Hello, I have the below program. Function recvfrom(...) in receive_UDP(...) returns -1 with error-code 11. I believe this is caused by a time-out but I should receive the "Hello world!"-text instead ? Is there someone who could help me finding what is wrong ? Best regards, Wamor /* HTTP GET Example ...
by Wamor45
Sat Jan 14, 2017 3:48 pm
Forum: General Discussion
Topic: send(socket, data, strlen(data), 0) returned errors
Replies: 3
Views: 8349

Re: send(socket, data, strlen(data), 0) returned errors

Hello kolban, Thank you for you explanation. I use the following code: char *data = "Hello world"; r = send(socketnumber, data, strlen(data), 0); ESP_LOGI(TAG, "... done sending to socket. Last read return=%d errno=%d", r, errno); My socketnumber is obtanined like this and seems to be 0: socketnumbe...
by Wamor45
Fri Jan 13, 2017 10:20 pm
Forum: General Discussion
Topic: send(socket, data, strlen(data), 0) returned errors
Replies: 3
Views: 8349

send(socket, data, strlen(data), 0) returned errors

Hello,

I am using the following line in my code: r = send(socket, data, strlen(data), 0);
r is -1 and the errno is: 22.
is there a list of errornumbers with their explanation?

Thank you and regards,

Wamor
by Wamor45
Fri Jan 06, 2017 8:59 pm
Forum: General Discussion
Topic: Unable to receive TCPIP-packets with wifi callback function
Replies: 10
Views: 19373

Re: Unable to receive TCPIP-packets with wifi callback function

Hello kolban,

Thank you for your response.
I will get me some good books about TCPIP and sockets.

Regards,

Wamor
by Wamor45
Fri Jan 06, 2017 8:54 pm
Forum: General Discussion
Topic: Unable to receive TCPIP-packets with wifi callback function
Replies: 10
Views: 19373

Re: Unable to receive TCPIP-packets with wifi callback function

Hello Angus,

What I basically want to do is receiving UDP-packages from a remote computer and send them out as analog values through the DAC of the ESP32. I hope this make sense to you.

Regards,

Wamor
by Wamor45
Thu Jan 05, 2017 7:47 pm
Forum: General Discussion
Topic: Unable to receive TCPIP-packets with wifi callback function
Replies: 10
Views: 19373

Unable to receive TCPIP-packets with wifi callback function

Hello, I wrote a small program which once connected to wifi should receive TCPIP packages. My program is listed below: nvs_flash_init(); tcpip_adapter_init(); ESP_ERROR_CHECK( esp_event_loop_init(event_handler, NULL) ); ESP_ERROR_CHECK( esp_wifi_init(&cfg) ); ESP_ERROR_CHECK( esp_wifi_get_mac(WIFI_I...
by Wamor45
Wed Jan 04, 2017 9:45 pm
Forum: General Discussion
Topic: esp_wifi_reg_rxcb missing in esp_wifi.h?
Replies: 1
Views: 4127

Re: esp_wifi_reg_rxcb missing in esp_wifi.h?

Ok,

Solved my problem.
esp_wifi_reg_rxcb was renamed to esp_wifi_internal_reg_rxcb and was moved to esp_wifi_internal.h.
esp_wifi.rst was not updated for this.

Regards,

Wamor
by Wamor45
Wed Jan 04, 2017 7:17 pm
Forum: General Discussion
Topic: esp_wifi_reg_rxcb missing in esp_wifi.h?
Replies: 1
Views: 4127

esp_wifi_reg_rxcb missing in esp_wifi.h?

Hello, I'm busy writing an application which read TCPIP-data over Wifi. I learned that this should be done with a callback-function called: esp_wifi_reg_rxcb but this function is missing in esp_wifi.h. It is described in esp_wifi.rst. Should this still be added or do I need to download the latest li...