You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gabriel becker fdd7e26e54 Implement WiFi dual mode functionality by adding station mode. 2 years ago
.vscode toggle button 2 years ago
include Make a test with fixed ip 2 years ago
lib Make a test with fixed ip 2 years ago
src Implement WiFi dual mode functionality by adding station mode. 2 years ago
.gitignore Make a test with fixed ip 2 years ago
README.md Add references to readme 2 years ago
platformio.ini Initial tests and setup. 2 years ago

README.md

ESP Button Bridge

A esp8266 button to toggle other esp8266 GPIO while it still enables the other device to receive http commands. Designed to control a tasmotta flashed device.

Plan

References

unsigned char softap_stations_cnt;
struct station_info *stat_info;
struct ip_addr *IPaddress;
uint32 uintaddress;

  softap_stations_cnt = wifi_softap_get_station_num(); // Count of stations which are connected to ESP8266 soft-AP
  stat_info = wifi_softap_get_station_info();
  Serial.write(softap_stations_cnt);
  while (stat_info != NULL) {
    IPaddress = &stat_info->ip;
    uintaddress = IPaddress->addr;
    Serial.write((uintaddress>>24));
    stat_info = STAILQ_NEXT(stat_info, next);
  }