上次学习了ESP8266的SAT模式,今天学习Soft-AP模式,也叫热点模式
02-ESP8266的Soft-AP模式学习
AP模式
AP模式全称:Access Pointer可接入点,通俗的说叫热点。常见的路由器就是AP模式工作,手机和电脑也可以作为热点使用。作为热点使用时,站点(STA)加入到AP模式的网络中。下图是ESP8266处于AP模式的示意图。
Soft-AP是指软件上实现AP功能,功能性与硬件AP差不多,但是Soft-AP覆盖面小,接入点少。
ESP8266WiFIAP库
主要是两个部分,相比STA模式要少一些
第一部分:Soft-AP模式参数配置
bool softAP(const char* ssid, const char* psk = NULL, int channel = 1, int ssid_hidden = 0, int max_connection = 4);
bool softAP(const String& ssid,const String& psk = emptyString,int channel = 1,int ssid_hidden = 0,int max_connection = 4);