Skip to content

Instantly share code, notes, and snippets.

@vindolin
Created March 5, 2020 13:42
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 vindolin/c0c4dc840e799e8c69b6690ce890193f to your computer and use it in GitHub Desktop.
Save vindolin/c0c4dc840e799e8c69b6690ce890193f to your computer and use it in GitHub Desktop.
const IPAddress ip(192, 168, 178, 9);
const IPAddress router(192, 168, 178, 1);
void setup() {
WiFi.persistent(false);
WiFi.mode(WIFI_STA);
WiFi.config(ip, router, router);
WiFi.begin(SSID, PASSWORD);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment