Hello, i have added esp-google-iot to my components, but it doesn't build, Is this library not compatible with IDF 5.0?
follows the errors:
AILED: esp-idf/esp-google-iot/CMakeFiles/__idf_esp-google-iot.dir/iot-device-sdk-embedded-c/src/bsp/crypto/mbedtls/iotc_bsp_crypto_mbedtls.c.obj
ccache C ...
Search found 10 matches
- Fri Jan 13, 2023 3:46 pm
- Forum: ESP IoT Solution
- Topic: esp-google-iot not compiling
- Replies: 1
- Views: 40251
- Fri Jan 13, 2023 3:37 pm
- Forum: ESP-IDF
- Topic: nvs_open return ESP_ERR_NVS_NOT_FOUND after erase flash
- Replies: 3
- Views: 4696
Re: nvs_open return ESP_ERR_NVS_NOT_FOUND after erase flash
added to initNvs, now it works!
thanks
Code: Select all
nvs_handle my_handle;
ret = nvs_open("storage", NVS_READWRITE, &my_handle);
nvs_close(my_handle);thanks
- Fri Jan 13, 2023 1:47 am
- Forum: ESP-IDF
- Topic: nvs_open return ESP_ERR_NVS_NOT_FOUND after erase flash
- Replies: 3
- Views: 4696
nvs_open return ESP_ERR_NVS_NOT_FOUND after erase flash
hello,
i have a working project that uses nvs.
if i do a idf.py erase-flash and reflash the project, NVS don't work anymore because when i do esp_err_t err = nvs_open("storage", NVS_READONLY, &my_handle); it return ESP_ERR_NVS_NOT_FOUND.
if i flash an example from $IDF_PATH/examples/storage/nvs ...
i have a working project that uses nvs.
if i do a idf.py erase-flash and reflash the project, NVS don't work anymore because when i do esp_err_t err = nvs_open("storage", NVS_READONLY, &my_handle); it return ESP_ERR_NVS_NOT_FOUND.
if i flash an example from $IDF_PATH/examples/storage/nvs ...
- Tue Jan 10, 2023 8:10 pm
- Forum: ESP-IDF
- Topic: [solved] IP_EVENT_STA_GOT_IP never triggered
- Replies: 4
- Views: 3927
Re: IP_EVENT_STA_GOT_IP never triggered
hello! follows the esp_event_handler_instance_register call: ESP_ERROR_CHECK(esp_event_handler_instance_register(WIFI_EVENT,
ESP_EVENT_ANY_ID,
&wifi_event_handler,
NULL,
NULL));
yes I am actually getting other events like WIFI_EVENT_STA_CONNECTED and WIFI_EVENT_STA_DISCONNECTED
--- edit ...
ESP_EVENT_ANY_ID,
&wifi_event_handler,
NULL,
NULL));
yes I am actually getting other events like WIFI_EVENT_STA_CONNECTED and WIFI_EVENT_STA_DISCONNECTED
--- edit ...
- Tue Jan 10, 2023 1:57 pm
- Forum: ESP-IDF
- Topic: [solved] IP_EVENT_STA_GOT_IP never triggered
- Replies: 4
- Views: 3927
[solved] IP_EVENT_STA_GOT_IP never triggered
Hello,
i have registered the following wifi event handler:
static void wifi_event_handler(void* arg, esp_event_base_t event_base,
int32_t event_id, void* event_data)
{
if (event_id == WIFI_EVENT_AP_STACONNECTED) {
wifi_event_ap_staconnected_t* event = (wifi_event_ap_staconnected_t*) event_data ...
i have registered the following wifi event handler:
static void wifi_event_handler(void* arg, esp_event_base_t event_base,
int32_t event_id, void* event_data)
{
if (event_id == WIFI_EVENT_AP_STACONNECTED) {
wifi_event_ap_staconnected_t* event = (wifi_event_ap_staconnected_t*) event_data ...
- Thu Jan 05, 2023 10:39 am
- Forum: ESP-IDF
- Topic: [solved] how to bme280 spi read?
- Replies: 4
- Views: 5259
Re: how to bme280 spi read?
solved. i attach code for future reference
int8_t user_spi_read(uint8_t reg_addr, uint8_t *reg_data, uint32_t len, void *intf_ptr)
{
int8_t rslt = 0; /* Return 0 for Success, non-zero for failure */
spi_transaction_t t;
memset(&t, 0, sizeof(t)); //Zero out the transaction
t.length = 8+8*len ...
int8_t user_spi_read(uint8_t reg_addr, uint8_t *reg_data, uint32_t len, void *intf_ptr)
{
int8_t rslt = 0; /* Return 0 for Success, non-zero for failure */
spi_transaction_t t;
memset(&t, 0, sizeof(t)); //Zero out the transaction
t.length = 8+8*len ...
- Tue Jan 03, 2023 6:14 pm
- Forum: ESP-IDF
- Topic: [solved] how to bme280 spi read?
- Replies: 4
- Views: 5259
Re: how to bme280 spi read?
i have a 2 probe scope, triggered by !CS in attach what i see with the following transaction:
spi_transaction_t t;
memset(&t, 0, sizeof(t)); //Zero out the transaction
t.length = 8+8*len;
t.rxlength = 8*len;
t.tx_buffer = NULL;
t.rx_buffer = reg_data;
t.addr = reg_addr;
Clk line, i see 16 ...
spi_transaction_t t;
memset(&t, 0, sizeof(t)); //Zero out the transaction
t.length = 8+8*len;
t.rxlength = 8*len;
t.tx_buffer = NULL;
t.rx_buffer = reg_data;
t.addr = reg_addr;
Clk line, i see 16 ...
- Tue Jan 03, 2023 2:24 pm
- Forum: ESP-IDF
- Topic: [solved] how to bme280 spi read?
- Replies: 4
- Views: 5259
Re: how to bme280 spi read?
hello,
if i put rxlength to 8+(8*len) i get
E (828) spi_master: check_trans_valid(694): rx length > tx length in full duplex mode
I (828) example: spi read rslt ERROR addr is 208 data is len is 1
if i increase t.lenght to 8+(8*len) i get 1 byte of junk.
If i increase both t.lenght and t.rxlenght ...
if i put rxlength to 8+(8*len) i get
E (828) spi_master: check_trans_valid(694): rx length > tx length in full duplex mode
I (828) example: spi read rslt ERROR addr is 208 data is len is 1
if i increase t.lenght to 8+(8*len) i get 1 byte of junk.
If i increase both t.lenght and t.rxlenght ...
- Tue Jan 03, 2023 1:17 am
- Forum: ESP-IDF
- Topic: [solved] how to bme280 spi read?
- Replies: 4
- Views: 5259
[solved] how to bme280 spi read?
Hello,
i am trying to use the bosh bme280 driver to interface the sensor trought spi.
this is how i init the spi line:
#define CLK_PIN GPIO_NUM_18
#define MISO_PIN GPIO_NUM_19
#define MOSI_PIN GPIO_NUM_23
#define CS_PIN GPIO_NUM_5
spi_device_handle_t spi2;
void spi_master_init()
{
esp_err_t ret ...
i am trying to use the bosh bme280 driver to interface the sensor trought spi.
this is how i init the spi line:
#define CLK_PIN GPIO_NUM_18
#define MISO_PIN GPIO_NUM_19
#define MOSI_PIN GPIO_NUM_23
#define CS_PIN GPIO_NUM_5
spi_device_handle_t spi2;
void spi_master_init()
{
esp_err_t ret ...
- Fri Jan 10, 2020 10:25 pm
- Forum: ESP-IDF
- Topic: httpd_stop() hangs
- Replies: 1
- Views: 3259
httpd_stop() hangs
Hello, i need to stop an http server instance, so I have following code:
static void app_prov_stop_service(void)
{
httpd_unregister_uri(g_prov->server, "/status");
httpd_unregister_uri(g_prov->server, "/provisioning");
ESP_LOGI(TAG, "stopping httpd");
if (g_prov->server)
{ httpd_stop(g_prov ...
static void app_prov_stop_service(void)
{
httpd_unregister_uri(g_prov->server, "/status");
httpd_unregister_uri(g_prov->server, "/provisioning");
ESP_LOGI(TAG, "stopping httpd");
if (g_prov->server)
{ httpd_stop(g_prov ...