Page 1 of 1

[ESP8266] UART-TCP Passthrough Demo

Posted: Tue Nov 17, 2015 11:46 am
by ESP_Faye
Here is a demo of UART-TCP passthrough mode based on ESP8266_NONOS_SDK.

If using ESP8266_NONOS_SDK_V1.5.0 or later version, please add "-lcrypto" in '" area of Makefile.


附件为基于 ESP8266_NONOS_SDK 的 UART-TCP 透传实现示例,仅供参考。

如果使用 ESP8266_NONOS_SDK_V1.5.0 或之后版本,请在示例的 Makefile 中 '" 区域增加 "-lcrypto" 。

感谢您对 ESP8266 的关注!

Re: [ESP8266] UART-TCP Passthrough Demo

Posted: Tue Feb 02, 2016 3:04 pm
by yangtao
This is in AP mode.

Will espressif provide station TCP-UART passthrough?

Re: [ESP8266] UART-TCP Passthrough Demo

Posted: Fri Feb 19, 2016 5:13 pm
by yuanjie1590

//wifi_set_opmode(SOFTAP_MODE); // softap mode
wifi_set_opmode(STATIONAP_MODE); //Set softAP + station mode

// set softap config
apConfig.authmode = AUTH_OPEN; = 0;
apConfig.max_connection = 1;
apConfig.ssid_len = os_strlen(TRANS_SSID);

wifi_set_event_handler_cb(wifi_event_handler_cb); // monitor wifi state

// Wifi configuration
char ssid[32] = "xxxxx";
char password[64] = "xxxxx";
struct station_config stationConf;

os_memset(stationConf.ssid, 0, 32);
os_memset(stationConf.password, 0, 64);
//need not mac address
stationConf.bssid_set = 0;

//Set ap settings
os_memcpy(&stationConf.ssid, ssid, 32);
os_memcpy(&stationConf.password, password, 64);

Re: [ESP8266] UART-TCP Passthrough Demo

Posted: Tue May 03, 2016 11:18 pm
by jeremyd2019
What's the license on this sample code? I'm not seeing any obvious notices in the downloaded zip file. I am thinking about using this sample as a basis for my development, because the uart driver code in the nonos sdk (at least versions 1.5.2 and 1.5.3) has comments indicating that it is GPL(v3), which is not exactly conducive to being linked into non-free software (see The version of the uart code in this sample does not claim to be GPL. While I've not yet decided on a license for my code, I want to keep my options open.

Re: [ESP8266] UART-TCP Passthrough Demo

Posted: Tue Sep 27, 2016 3:59 pm
by wangyi4422
Nothing to be done for `FORCE'.