Search found 2210 matches

by chegewara
Tue Mar 19, 2024 4:17 pm
Forum: ESP-IDF
Topic: Can't get or set hostname on netif
Replies: 1
Views: 772

Re: Can't get or set hostname on netif

When you init ethernet netif with this or similar API:

Code: Select all

ethernetif_init()
you can use thi API w/o issues

Code: Select all

esp_netif_set_hostname(esp_netif, name)
by chegewara
Tue Mar 19, 2024 4:06 pm
Forum: Hardware
Topic: WiFi,BT,etc can add lags? can be turned off?
Replies: 1
Views: 992

Re: WiFi,BT,etc can add lags? can be turned off?

If you dont use wifi, ble and other API in your code then library and hardware are not used and do not have impact on your application. All tasks have priority, so you can try to control which tasks should have higher priority and no lag. Also you can create important task on one core and less impor...
by chegewara
Tue Mar 19, 2024 3:54 pm
Forum: General Discussion
Topic: arduino to IDF newbie help managing mulitple apps inline
Replies: 20
Views: 1842

Re: arduino to IDF newbie help managing mulitple apps inline

PS on a separate but related note: the NPT example in IDF is EXACTLY what that first app should be. There are notes in there that the “example_connect” function is simplified & should not be used in real work applications. How serious should I take that note? This isn’t a commercial product or anyt...
by chegewara
Tue Mar 19, 2024 3:03 pm
Forum: ESP32 Arduino
Topic: BLE BLERemoteCharacteristic Notify misses Bytes
Replies: 4
Views: 339

Re: BLE BLERemoteCharacteristic Notify misses Bytes

I am suggesting to answer in topics you know. In this case maybe its worth to read about MTU? You can send/receive notifications/indications in size over 500 bytes. So you could have just shared this for the OP to try out? Or any of link below, rather than saying that 20 in MAX by bluetooth specifi...
by chegewara
Tue Mar 19, 2024 2:53 pm
Forum: ESP-IDF 中文讨论版
Topic: ESP-IDF v5.2.1 xTaskCreate 参数传递疑问
Replies: 1
Views: 172

Re: ESP-IDF v5.2.1 xTaskCreate 参数传递疑问

void onHttpConnected(void* arg, esp_event_base_t eventBase, int32_t eventId, void* eventData) { int *fd = (int *)eventData; ESP_LOGI(TAG, "HTTP Connected, fd = %d, pointer = %p", *fd, fd); task = xTaskCreate(websocketSend, "websocket", 4096, (void *)fd, 5, NULL); } When this function quits "eventDa...
by chegewara
Tue Mar 19, 2024 2:46 pm
Forum: General Discussion
Topic: arduino to IDF newbie help managing mulitple apps inline
Replies: 20
Views: 1842

Re: arduino to IDF newbie help managing mulitple apps inline

P.S.: Dear Ché, let's not go there. I'd rather try and find the best solutions for people in a cooperative way than diminishing others. I'm not here to take anything away from anyone. I guess we could come up with excellent ideas by leveraging each other's experience. To show you why no answer is b...
by chegewara
Tue Mar 19, 2024 4:16 am
Forum: ESP-IDF
Topic: ADC values less than half of expected
Replies: 2
Views: 218

Re: ADC values less than half of expected

Reference voltage 1029mV does not mean you will get 4095 measuring 1029mV on ADC pin.
With this line you get 4095 when you connect 3.3V (assuming ideal conditions)

Code: Select all

adc1_config_channel_atten(ADC1_CHANNEL_0, ADC_ATTEN_DB_0); <---- ADC_ATTEN_DB_0
by chegewara
Tue Mar 19, 2024 3:59 am
Forum: General Discussion
Topic: arduino to IDF newbie help managing mulitple apps inline
Replies: 20
Views: 1842

Re: arduino to IDF newbie help managing mulitple apps inline

TL;DR: Never pass anything other than NULL to vTaskDelete(...). Just ignore posts like this. It makes completely no sense. Now your issue. I would focus on code optimization rather than having few "apps" inside your firmware. There is plenty option to "steal" some memory here and there. Some are "h...
by chegewara
Tue Mar 19, 2024 2:47 am
Forum: ESP Mesh 中文讨论版
Topic: ESP32C6, BLE MESH,使用 Vendor,如何广播信息呢,
Replies: 1
Views: 120

Re: ESP32C6, BLE MESH,使用 Vendor,如何广播信息呢,

Hi, i will try to answer your question. You can use this function to publish vendor model data esp_ble_mesh_model_publish(model, ESP_BLE_MESH_VND_MODEL_OP_STATUS, len, data, ROLE_NODE); As far as i know, but i may be wrong, its the only option to publish vendor model at the moment. Remember to setup...
by chegewara
Mon Mar 18, 2024 5:49 pm
Forum: ESP-IDF
Topic: ble mesh API standardization
Replies: 0
Views: 151

ble mesh API standardization

Hi team, I dont want to sound like I linger or something, because so far i think that ble mesh stack is great and easy to work with, but can we have some standardization in API please. For example we have names like this: - esp_ble_mesh_lighting_server_cb_t - esp_ble_mesh_light_client_cb_t whats the...