Search found 132 matches

by burkulesomesh43
Thu Dec 13, 2018 7:32 am
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 35710

Re: Best way to store large objects on flash?

If you only need a single immutable file, theres also the option of letting the build embed it. Example for a file called "what_time.raw": /* embedded file */ extern uint8_t file_start[] asm("_binary_what_time_raw_start"); extern uint8_t file_end[] asm("_binary_what_time_raw_end"); component.mk: CO...
by burkulesomesh43
Thu Dec 13, 2018 7:30 am
Forum: ESP-IDF
Topic: webserver using FATFS file system
Replies: 10
Views: 17708

Re: webserver using FATFS file system

can i use the files like used in following link.
http://zerothelement21.blogspot.com/201 ... f-sdk.html

but i dont know then where this file is stored. in EEPROM or in code.
by burkulesomesh43
Thu Dec 13, 2018 6:59 am
Forum: ESP-IDF
Topic: webserver using FATFS file system
Replies: 10
Views: 17708

Re: webserver using FATFS file system

ESP_Anurag wrote:
Thu Dec 13, 2018 6:18 am
ESP-IDF has it's own native http server now (see esp_http_server). Check this answer, from a previous post, about serving files off a FAT formatted SD card : viewtopic.php?p=29992#p29992
I am using esp-idf v3.1.1 which does not have esp_http_server.
by burkulesomesh43
Thu Dec 13, 2018 4:49 am
Forum: ESP-IDF
Topic: webserver using FATFS file system
Replies: 10
Views: 17708

Re: webserver using FATFS file system

I am use part of code for the same (fatfs to webserver) from this GIT https://github.com/limiter121/esp32-obd2-emulator It gives an error. there is no header in esp idf. C:/esp-idf-v3.1.1/examples/somesh/webserver-file/main/main.c:26:25: fatal error: http_server.h: No such file or directory compila...
by burkulesomesh43
Wed Dec 12, 2018 1:31 pm
Forum: ESP-IDF
Topic: webserver using FATFS file system
Replies: 10
Views: 17708

webserver using FATFS file system

Hi all, I want to store a html file in flash and use that file for webserver. I just want to hit whole html file not like reading it and use that variable in netconn_write(); function to hit that page. please the the code as follows. is there any api to hit that file directly from flash? #include "f...
by burkulesomesh43
Wed Nov 14, 2018 8:42 am
Forum: ESP-IDF
Topic: cant accept path in ota example
Replies: 11
Views: 11715

Re: cant accept path in ota example

fly135 wrote:
Thu Nov 01, 2018 5:05 pm
OK, so it appears that you are not using the latest esp_https_ota code in the IDF.

John A
hi,
I am using dns_gethostbyname() api to resolve IP. but it takes too much time to get ip.
what will be the problem.
by burkulesomesh43
Fri Nov 02, 2018 2:15 pm
Forum: Sample Code
Topic: Example of using Queue to pass strings between tasks
Replies: 19
Views: 32685

Re: Example of using Queue to pass strings between tasks

Hi,
How to find number of items are in queue?? is there any api?
by burkulesomesh43
Thu Nov 01, 2018 5:35 am
Forum: ESP-IDF
Topic: cant accept path in ota example
Replies: 11
Views: 11715

Re: cant accept path in ota example

fly135 wrote:"https://example.com:2233/take/ota.bin"

If you are using esp_https_ota, then you need "https" and a certificate. Or you can comment out the checks and use http.

John A
Problem solved. I used dns_gethostbyname() api in my code and passes "example.com" to it. it returns ip address.
by burkulesomesh43
Mon Oct 29, 2018 1:35 pm
Forum: ESP-IDF
Topic: cant accept path in ota example
Replies: 11
Views: 11715

cant accept path in ota example

Hi,
I am trying to use ota example. in path of ota example if I give path like "example.com:2233/take/ota.bin", it cant connect to server.
please help me out for the problem.
by burkulesomesh43
Fri Oct 26, 2018 2:27 pm
Forum: General Discussion
Topic: [answered] how to get my IP address?
Replies: 10
Views: 34490

Re: [answered] how to get my IP address?

Resch2061 wrote:You can print the IP address as octets as follows (from the top of my head):

Code: Select all

printf("My IP: " IPSTR "\n", IP2STR(&ipinfo.ip));
thank you. its working