ESP8266 Developer Zone The Official ESP8266 Forum 2016-09-27T15:59:36+08:00 https://bbs.espressif.com:443/feed.php?f=31&t=1393 2016-09-27T15:59:36+08:00 2016-09-27T15:59:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1393&p=9957#p9957 <![CDATA[Re: [ESP8266] UART-TCP Passthrough Demo]]> Nothing to be done for `FORCE'.

Statistics: Posted by wangyi4422 — Tue Sep 27, 2016 3:59 pm


]]>
2016-05-03T23:18:53+08:00 2016-05-03T23:18:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1393&p=6693#p6693 <![CDATA[Re: [ESP8266] UART-TCP Passthrough Demo]]> http://www.gnu.org/licenses/gpl-faq.en.html#LinkingWithGPL). 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.

Statistics: Posted by jeremyd2019 — Tue May 03, 2016 11:18 pm


]]>
2016-02-19T17:13:22+08:00 2016-02-19T17:13:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1393&p=5785#p5785 <![CDATA[Re: [ESP8266] UART-TCP Passthrough Demo]]>
在user_init()里面
我先是修改模式
//wifi_set_opmode(SOFTAP_MODE); // softap mode
wifi_set_opmode(STATIONAP_MODE); //Set softAP + station mode

// set softap config
os_memset(&apConfig,0x0,sizeof(apConfig));
apConfig.authmode = AUTH_OPEN;
apConfig.channel = 0;
apConfig.max_connection = 1;
apConfig.ssid_len = os_strlen(TRANS_SSID);
os_strncpy(apConfig.ssid,TRANS_SSID,os_strlen(TRANS_SSID));
wifi_softap_set_config(&apConfig);

wifi_set_event_handler_cb(wifi_event_handler_cb); // monitor wifi state


然后在这里写的station配置
///////////////////////////////////
// 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);
wifi_station_set_config(&stationConf);

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


]]>
2016-02-02T15:04:58+08:00 2016-02-02T15:04:58+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1393&p=5627#p5627 <![CDATA[Re: [ESP8266] UART-TCP Passthrough Demo]]>
Will espressif provide station TCP-UART passthrough?

Statistics: Posted by yangtao — Tue Feb 02, 2016 3:04 pm


]]>
2015-11-17T11:46:05+08:00 2015-11-17T11:46:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1393&p=4625#p4625 <![CDATA[[ESP8266] UART-TCP Passthrough Demo]]>
If using ESP8266_NONOS_SDK_V1.5.0 or later version, please add "-lcrypto" in 'LINKFLAGS_eagle.app.v6" area of Makefile.

Enjoy!

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

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

感谢您对 ESP8266 的关注!
ESP8266_NONOS_SDK_UART_TCP_Passthrough_Demo.zip

Statistics: Posted by ESP_Faye — Tue Nov 17, 2015 11:46 am


]]>