ESP8266 Developer Zone The Official ESP8266 Forum 2016-10-14T10:15:40+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2857 2016-10-14T10:15:40+08:00 2016-10-14T10:15:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2857&p=10155#p10155 <![CDATA[Re: New function, execution order of functions]]>
trojek wrote:
Thank you Alen - that is what I asked for.


welcome.

Statistics: Posted by Guest — Fri Oct 14, 2016 10:15 am


]]>
2016-10-13T21:44:38+08:00 2016-10-13T21:44:38+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2857&p=10150#p10150 <![CDATA[Re: New function, execution order of functions]]> Statistics: Posted by trojek — Thu Oct 13, 2016 9:44 pm


]]>
2016-10-13T13:08:30+08:00 2016-10-13T13:08:30+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2857&p=10145#p10145 <![CDATA[Re: New function, execution order of functions]]>
trojek wrote:
I understand that to print AP with their RSSI I should use espconn_mesh_scan function. I found it in documentation. I don't understand which functions execute from which files and in which order. For example I added to mesh_device.c new function:

Code:

void ICACHE_FLASH_ATTR mesh_device_disp_string() {
MESH_DEMO_PRINT("test");
}


and it doesn't execute. If I add "MESH_DEMO_PRINT("test");" to "mesh_device_disp_mac_list()" function I can see printed string. I don't understand which functions executes, which not and why. That is why I asked about "main function" which is responsible for program workflow.


user_init in mesh_demo.c is the entrance of demo.

please add scan in mesh_enable_cb.

Statistics: Posted by Guest — Thu Oct 13, 2016 1:08 pm


]]>
2016-10-10T21:10:12+08:00 2016-10-10T21:10:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2857&p=10101#p10101 <![CDATA[Re: New function, execution order of functions]]>

Code:

void ICACHE_FLASH_ATTR mesh_device_disp_string() {
MESH_DEMO_PRINT("test");
}


and it doesn't execute. If I add "MESH_DEMO_PRINT("test");" to "mesh_device_disp_mac_list()" function I can see printed string. I don't understand which functions executes, which not and why. That is why I asked about "main function" which is responsible for program workflow.

Statistics: Posted by trojek — Mon Oct 10, 2016 9:10 pm


]]>
2016-10-10T18:21:28+08:00 2016-10-10T18:21:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2857&p=10100#p10100 <![CDATA[Re: New function, execution order of functions]]>
trojek wrote:
I want to add new function to "mesh device", for example I want to add functionality to print available AP with their RSSI?
1) In which file should I do it: mesh_demo.c or mesh_device.c or other, maybe new?
2) What is order of execution functions? Is there something like "main function" which is responsible for program workflow?


You can use espconn_mesh_scan to get AP list, and print RSSI of AP.

Statistics: Posted by Guest — Mon Oct 10, 2016 6:21 pm


]]>
2016-10-08T22:13:34+08:00 2016-10-08T22:13:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2857&p=10087#p10087 <![CDATA[New function, execution order of functions]]> 1) In which file should I do it: mesh_demo.c or mesh_device.c or other, maybe new?
2) What is order of execution functions? Is there something like "main function" which is responsible for program workflow?

Statistics: Posted by trojek — Sat Oct 08, 2016 10:13 pm


]]>