当前位置:首页 > DIY各种好玩的 > 正文内容

ESP8266 arduino AP模块并串口返回连接设备MAC信息

chanra1n3年前 (2021-02-02)DIY各种好玩的3277
#include <ESP8266WiFi.h>
const char *ssid = "WIFI";
void setup() {
  Serial.begin(115200);
  Serial.println();
  WiFi.softAP(ssid);
}
void loop() {
  client_status();
  delay(5);
}
void client_status() {
  unsigned char number_client;
  struct station_info *stat_info;
  stat_info = wifi_softap_get_station_info();
  while (stat_info != NULL) {
    Serial.println(stat_info->bssid[0], HEX);
    Serial.println(stat_info->bssid[1], HEX);
    Serial.println(stat_info->bssid[2], HEX);
    Serial.println(stat_info->bssid[3], HEX);
    Serial.println(stat_info->bssid[4], HEX);
    Serial.println(stat_info->bssid[5], HEX);
    stat_info = STAILQ_NEXT(stat_info, next);
  }
  //delay(500);
}


扫描二维码推送至手机访问。

版权声明:本文由我的FPGA发布,如需转载请注明出处。

本文链接:https://www.myfpga.cn/index.php/post/181.html

分享给朋友:

“ESP8266 arduino AP模块并串口返回连接设备MAC信息” 的相关文章

某宝五毛钱两路稳压输出板研究

某宝五毛钱两路稳压输出板研究

0两路稳压输出板  单片机控制 未知用途 研究价【现价】 0.50 元【下单链接】https://m.tb.cn/h.f2wVJPS首先映入眼帘的是一个SOP8的单片机,根据单片机左边连接的Y1焊盘和两个电容,很容易分析出来单片机的2、3引...

(资料合集)Thunderbolt 3 DSL/JHL6540 6340原理图 无PCB 雷电3转PCIE 调试FPGA 显卡扩展 万兆网卡扩展

(资料合集)Thunderbolt 3 DSL/JHL6540 6340原理图 无PCB 雷电3转PCIE 调试FPGA 显卡扩展 万兆网卡扩展

Blog:https://zhuanlan.zhihu.com/p/390425571 https://www.techpowerup.com/review/terramaster-d2-thunderbolt-3-2-bay-das-review/3.html https://www.mattmi...

玩客云刷机 Armbian23.11.0 网心云 老母鸡

玩客云刷机 Armbian23.11.0 网心云 老母鸡

拆机刷机很简单,这里不进行赘述短接上电拿个跳线或者镊子,短接如下图中的两点,然后在短接的同时插上玩客云的电源。下载固件点击去Github下载https://github.com/hzyitc/armbian-onecloud/releases从上到下分别是标准版,最小版和带桌面的,我这里下载的是标准...