-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always show Wifi scan results (RSSI, channel, bssid)
- Loading branch information
Showing
7 changed files
with
191 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,49 @@ | ||
/*! | ||
* @file Wippersnapper_Networking.h | ||
* | ||
* This file includes network interfaces at compile-time. | ||
* | ||
* Adafruit invests time and resources providing this open source code, | ||
* please support Adafruit and open-source hardware by purchasing | ||
* products from Adafruit! | ||
* | ||
* Copyright (c) Brent Rubell 2020-2021 for Adafruit Industries. | ||
* | ||
* BSD license, all text here must be included in any redistribution. | ||
* | ||
*/ | ||
|
||
#ifndef WIPPERSNAPPER_NETWORKING_H | ||
#define WIPPERSNAPPER_NETWORKING_H | ||
|
||
#if defined(ADAFRUIT_METRO_M4_EXPRESS) || \ | ||
defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE) || defined(ADAFRUIT_PYPORTAL) || \ | ||
defined(ADAFRUIT_PYPORTAL_M4_TITANO) || defined(USE_AIRLIFT) | ||
#include "network_interfaces/Wippersnapper_AIRLIFT.h" | ||
/** Nina-FW (adafruit fork) networking class */ | ||
typedef Wippersnapper_AIRLIFT Wippersnapper_WiFi; | ||
#elif defined(ARDUINO_ARCH_ESP8266) | ||
#include "network_interfaces/Wippersnapper_ESP8266.h" | ||
/** ESP8266's networking class */ | ||
typedef Wippersnapper_ESP8266 Wippersnapper_WiFi; | ||
#elif defined(ARDUINO_ARCH_ESP32) | ||
#include "network_interfaces/Wippersnapper_ESP32.h" | ||
/** ESP32's networking class */ | ||
typedef Wippersnapper_ESP32 Wippersnapper_WiFi; | ||
#elif defined(ARDUINO_ARCH_RP2040) | ||
#include "network_interfaces/ws_networking_pico.h" | ||
typedef ws_networking_pico Wippersnapper_WiFi; | ||
#elif defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRWIFI1010) | ||
/** Nina-FW (arduino) networking class */ | ||
#include "network_interfaces/Wippersnapper_WIFININA.h" | ||
typedef Wippersnapper_WIFININA Wippersnapper_WiFi; | ||
#else | ||
#warning "Must define network interface in config.h!" | ||
#endif | ||
|
||
/*! | ||
* @file Wippersnapper_Networking.h | ||
* | ||
* This file includes network interfaces at compile-time. | ||
* | ||
* Adafruit invests time and resources providing this open source code, | ||
* please support Adafruit and open-source hardware by purchasing | ||
* products from Adafruit! | ||
* | ||
* Copyright (c) Brent Rubell 2020-2021 for Adafruit Industries. | ||
* | ||
* BSD license, all text here must be included in any redistribution. | ||
* | ||
*/ | ||
|
||
#ifndef WIPPERSNAPPER_NETWORKING_H | ||
#define WIPPERSNAPPER_NETWORKING_H | ||
|
||
#ifndef WL_MAC_ADDR_LENGTH | ||
#define WL_MAC_ADDR_LENGTH 6 ///< MAC address length - from RP2040 BSP | ||
#endif | ||
#define WS_MAX_ALT_WIFI_NETWORKS 3 ///< Maximum number of alternative networks | ||
|
||
#if defined(ADAFRUIT_METRO_M4_EXPRESS) || \ | ||
defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE) || defined(ADAFRUIT_PYPORTAL) || \ | ||
defined(ADAFRUIT_PYPORTAL_M4_TITANO) || defined(USE_AIRLIFT) | ||
#include "network_interfaces/Wippersnapper_AIRLIFT.h" | ||
/** Nina-FW (adafruit fork) networking class */ | ||
typedef Wippersnapper_AIRLIFT Wippersnapper_WiFi; | ||
#elif defined(ARDUINO_ARCH_ESP8266) | ||
#include "network_interfaces/Wippersnapper_ESP8266.h" | ||
/** ESP8266's networking class */ | ||
typedef Wippersnapper_ESP8266 Wippersnapper_WiFi; | ||
#elif defined(ARDUINO_ARCH_ESP32) | ||
#include "network_interfaces/Wippersnapper_ESP32.h" | ||
/** ESP32's networking class */ | ||
typedef Wippersnapper_ESP32 Wippersnapper_WiFi; | ||
#elif defined(ARDUINO_ARCH_RP2040) | ||
#include "network_interfaces/ws_networking_pico.h" | ||
typedef ws_networking_pico Wippersnapper_WiFi; | ||
#elif defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRWIFI1010) | ||
/** Nina-FW (arduino) networking class */ | ||
#include "network_interfaces/Wippersnapper_WIFININA.h" | ||
typedef Wippersnapper_WIFININA Wippersnapper_WiFi; | ||
#else | ||
#warning "Must define network interface in config.h!" | ||
#endif | ||
|
||
#endif // WIPPERSNAPPER_NETWORKING_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.