Search found 86 matches

by Zeni241
Sat Oct 10, 2020 6:03 am
Forum: ESP-IDF
Topic: Wi-Fi Provisioning example "manager"
Replies: 0
Views: 1937

Wi-Fi Provisioning example "manager"

I am working on provisioning example “manager” ( https://github.com/espressif/esp-‎idf/tree/v4.1/examples/provisioning/manager ).‎ On device side I have flashed the above code with security 0 . ‎ On client side I am using “Web Bluetooth API” to interact with device from browser. ‎ I can connect to t...
by Zeni241
Sat Aug 08, 2020 6:20 am
Forum: ESP-IDF
Topic: Using partition label instead of using NULL for .partition_table in esp_vfs_spiffs_conf_t
Replies: 1
Views: 2783

Using partition label instead of using NULL for .partition_table in esp_vfs_spiffs_conf_t

I am trying SPIFFS example with “partition label” instead of using NULL for .partition_table in esp_vfs_spiffs_conf_t My spiffs partion is as below in my partition table: storage, data, spiffs, , 0x6000, This is my code: const char *part_label="storage"; void files(void) { ESP_LOGI(TAG, "Initializin...
by Zeni241
Mon Jul 13, 2020 1:17 pm
Forum: ESP-IDF
Topic: ESP32 Websocket Server
Replies: 26
Views: 40192

Re: ESP32 Websocket Server

For two way communication in IoT world, the preferred and most used protocol is MQTT (instead of http). A few desirable features of MQTT are: Small code footprint (to make it easy to implement in small devices) Low power consumption Low bandwidth consumption Low latency Use of a publish/subscribe (“...
by Zeni241
Fri May 01, 2020 1:31 pm
Forum: Hardware
Topic: How many write/erase cycle on flash??
Replies: 4
Views: 12598

Re: How many write/erase cycle on flash??

Thanks WiFive for response. Good clue, “erase only when run out of space” to reduce at least erase cycle. Just wondering, do people often use this approach in production (save data on flash for a while for later uploading on server) :? :shock: ? Just gathering courage to use this approach. :D :D
by Zeni241
Fri May 01, 2020 7:34 am
Forum: Hardware
Topic: How many write/erase cycle on flash??
Replies: 4
Views: 12598

How many write/erase cycle on flash??

I want to take reading of a sensor every 5 minutes and save it on flash. Then every 24 hours I will send it to server via WiFi. I read somewhere in this forum that there is a limit of about 10000 write/erase cycles on flash of ESP32 WROOM. (ESP32 WROOM probably uses GD25Q32C and according to its dat...
by Zeni241
Wed Mar 11, 2020 3:25 pm
Forum: General Discussion
Topic: Windows Powershell to build, configure, flash etc.
Replies: 1
Views: 8587

Windows Powershell to build, configure, flash etc.

Currently I am using ESP-IDF command prompt to build, configure, flash etc. How can I use windows Powershell to run commands like idf.py menuconfig etc.?

I am using idf version 4.0 with CMake.
by Zeni241
Mon Mar 09, 2020 11:54 am
Forum: ESP-IDF
Topic: missing braces around initializer [-Werror=missing-braces]
Replies: 1
Views: 7554

Re: missing braces around initializer [-Werror=missing-braces]

Type casting sta_config.sta.ssid and sta_config.sta.password to (char* ) solved the problem: wifi_config_t sta_config = {}; strcpy((char *)sta_config.sta.ssid, vSSID); strcpy((char *)sta_config.sta.password, vPW); instead of wifi_config_t wifi_config = { .sta = { .ssid = aa, .password = bb }, };
by Zeni241
Sat Mar 07, 2020 9:27 am
Forum: ESP-IDF
Topic: missing braces around initializer [-Werror=missing-braces]
Replies: 1
Views: 7554

missing braces around initializer [-Werror=missing-braces]

I am building wifi example esp-idf/examples/wifi/getting_started/station/. I only changed these lines: char aa[]="myssid"; char bb[]="mypassword"; wifi_config_t wifi_config = { .sta = { .ssid = aa, .password = bb }, }; Now I am getting this error: ../main/station_example_main.c: In function 'wifi_in...
by Zeni241
Fri Feb 14, 2020 12:44 pm
Forum: ESP-IDF
Topic: Using esp-idf command prompt for building projects in folders other than esp-idf folder
Replies: 1
Views: 3698

Using esp-idf command prompt for building projects in folders other than esp-idf folder

I used ESP-IDF Tools Installer version 2.3 to successfully install required tools and esp-idf 4.0. I can configure, build, flash projects if they are in some sub folder of esp-idf folder. But I work on projects which are in some folder other than esp-idf folder. How can I use esp-idf command prompt ...