Skip to content

Instantly share code, notes, and snippets.

@dropmeaword
Created June 25, 2021 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dropmeaword/7ef5660344e8fab6f9818cbce36ed906 to your computer and use it in GitHub Desktop.
Save dropmeaword/7ef5660344e8fab6f9818cbce36ed906 to your computer and use it in GitHub Desktop.
#ifndef __WIFI_H__
#define __WIFI_H__
#include <DNSServer.h>
#include <ESP8266mDNS.h>
enum WifiMode {
CLIENT = 10, // station node
HYBRID_AP = 15, // station + ap
ACCESS_POINT = 20, // ap only
MESH = 30 // mesh
};
#define DNS_PORT 53
extern DNSServer dnsServer;
extern IPAddress thisip;
void wifi_init();
#endif // __WIFI_H__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment