Search found 51 matches

by ESP_Bond
Thu Jul 18, 2019 9:25 am
Forum: ESP-MDF
Topic: Using the MDF with C++
Replies: 22
Views: 31304

Re: Using the MDF with C++

You don't need to modify esp-mdf, you just need to add a type cast before MALLOC, please refer to: get_start.cpp
by ESP_Bond
Mon Jul 15, 2019 7:27 am
Forum: ESP-MDF
Topic: mesh "wireless debug" (esp now) -- do i need to be connected to wifi router?
Replies: 2
Views: 5359

Re: mesh "wireless debug" (esp now) -- do i need to be connected to wifi router?

Use wifi_config to configure the channel, not the router.
Replace wifi_config -s "esp-liyin" -p "password" with wifi_config -c 11
by ESP_Bond
Fri Jul 12, 2019 3:12 am
Forum: ESP-MDF
Topic: Using the MDF with C++
Replies: 22
Views: 31304

Re: Using the MDF with C++

C++ does not support automatic void type conversion, so you need to add a cast before MDF_XALLOC,
for example: char *data = (char *)MDF_MALLOC(MWIFI_PAYLOAD_LEN);
by ESP_Bond
Fri Jul 12, 2019 2:17 am
Forum: ESP-MDF
Topic: OTA Problems
Replies: 6
Views: 9810

Re: OTA Problems

Please provide the code of `node_handle_task`
by ESP_Bond
Wed Jul 10, 2019 9:41 am
Forum: ESP-MDF
Topic: OTA Problems
Replies: 6
Views: 9810

Re: OTA Problems

This problem is caused by insufficient memory. ``` E (23801) [mwifi, 815]: <ESP_ERR_NO_MEM> Realloc size: 1456, new_ptr: 0x0, heap free: 10816 ``` 1. Check if your configuration is as follows: http://static.zybuluo.com/zzc/wnxewbdxh4hbi4anhn5cdiyh/image.png 2. If you can't provide a complete log of ...
by ESP_Bond
Thu Jul 04, 2019 12:41 pm
Forum: ESP Mesh 中文讨论版
Topic: light demo下如何添加esp_http_client例程
Replies: 2
Views: 12706

Re: light demo下如何添加esp_http_client例程

1. 没有看到你代码截图, 通过你的描述无法确切的问题, 请提示 代码及 完整的运行日志 2. 暂时没有详细移植使用步骤, 我们现在正编译 jumpstart, 你可以参照如下步骤: 1. 通过 light_example https://github.com/espressif/esp-mdf/blob/master/examples/development_kit/README_cn.md 了解 wif-mesh 的配网,组网,升级等功能 2. 使用 fuction_demo 下的示例去详细了解各个功能块, 文档参见: https://docs.espressif.com/projects...
by ESP_Bond
Tue Jun 04, 2019 4:07 am
Forum: ESP-MDF
Topic: compiling ESP-MDF examples on IDF path.
Replies: 4
Views: 6823

Re: compiling ESP-MDF examples on IDF path.

The path of esp-idf is configured by `esp-mdf/esp-idf` in esp-mdf.
You can modify it by modifying `project.mk`

Image
by ESP_Bond
Mon Jun 03, 2019 3:10 am
Forum: ESP-MDF
Topic: How to resolve the IP Address of a Mesh Light ? <SOLVED>
Replies: 8
Views: 25226

Re: How to resolve the IP Address of a Mesh Light ?

An [example][https://github.com/espressif/esp-mdf/blob/master/components/mlink/mlink_notice.c#L57] of a local discovery of the parameter esp-mdf You can also run the [example of mdns][https://github.com/espressif/esp-idf/blob/master/examples/protocols/mdns/main/mdns_example_main.c#L34] directly in e...
by ESP_Bond
Thu May 30, 2019 6:22 am
Forum: ESP-MDF
Topic: Time Synchronization
Replies: 3
Views: 12428

Re: Time Synchronization

This implemented feature is currently in beta and we will submit it to github as soon as possible.
by ESP_Bond
Thu May 30, 2019 6:19 am
Forum: ESP-MDF
Topic: Cant compile using stl files
Replies: 3
Views: 6234

Re: Cant compile using stl files

Functions that call C++ directly need to have the file format `cpp` or put `extern "C" in front of the function. I suggest you: Write the function that needs to use the esp-idf interface in a `cpp` file, and put `extern "C" `. in front of the function. This can be called directly in c. > Note: If yo...