Skip to content

File WiFiMulti.h

File List > arduino > libraries > ext > WiFiMulti > WiFiMulti.h

Go to the documentation of this file.

#pragma once

#include "WiFi.h"
#include <vector>

typedef struct {
    char *ssid;
    char *passphrase;
} WifiAPlist_t;

class WiFiMulti {
  public:
    WiFiMulti();
    ~WiFiMulti();

    bool addAP(const char *ssid, const char *passphrase = NULL);

    uint8_t run(uint32_t connectTimeout = 10000);

  private:
    std::vector<WifiAPlist_t> APlist;
};