wifi_station_connect() api call behavior in esp_iot_rtos_sdk

jmg5150
Posts: 14
Joined: Tue Nov 25, 2014 3:04 am

wifi_station_connect() api call behavior in esp_iot_rtos_sdk

Postby jmg5150 » Tue Dec 09, 2014 2:42 am

Hello, I have a few questions about the behavior of the wifi_station_connect() api call, using the esp_iot_rtos_sdk.

1)
When calling the wifi_station_connect(), if the network is not found, the chip continues to retry connecting every 1 second. Is there a way to change this behavior? For example, it would be great to disable auto-retry, and detect the failure and handle it within my own code. Please let me know if this is possible.

2)
is it possible to modify/suppress the output of the wifi_station_connect()? [it'd be great to be able to suppress the output of all system/api commands so that uart contains only data sent from my within my application code.]

Any insight you have on these two items would be greatly appreciated.
Thank you very much!
-Jonathan

jackon
Posts: 28
Joined: Thu Oct 23, 2014 9:05 am

Re: wifi_station_connect() api call behavior in esp_iot_rtos

Postby jackon » Wed Dec 10, 2014 7:51 pm

hi,jmg5150
A1: We will support this feature later. Some events will be post to user side, such as CONNECT, DISCONNECT, SCAN_DONE etc., so you can handler what you want by yourself.
A2: Esp8266 has two UART, UART0 is used to output log by default, but you can change to use UART1 by using os_install_putc1 function, then use UART0 to transmit your data.

jmg5150
Posts: 14
Joined: Tue Nov 25, 2014 3:04 am

Re: wifi_station_connect() api call behavior in esp_iot_rtos

Postby jmg5150 » Thu Dec 11, 2014 8:06 am

Hello Jackson,

Thank you very much for the info. I look forward to seeing the new features in the rtos sdk soon.

Kind regards,
Jonathan

Who is online

Users browsing this forum: No registered users and 91 guests