Set PlatformIO sketch to use offline adapter if needed
This commit is contained in:
parent
b86cfc1500
commit
a923c229d2
1 changed files with 7 additions and 0 deletions
|
|
@ -9,7 +9,14 @@
|
|||
// All text above must be included in any redistribution.
|
||||
|
||||
#include "ws_adapters.h"
|
||||
#if defined(ARDUINO_RASPBERRY_PI_PICO_2) || \
|
||||
defined(ARDUINO_RASPBERRY_PI_PICO) || \
|
||||
defined(ARDUINO_ADAFRUIT_FEATHER_RP2040_ADALOGGER) || \
|
||||
defined(ARDUINO_ADAFRUIT_METRO_RP2350)
|
||||
ws_adapter_offline wipper;
|
||||
#else
|
||||
ws_adapter_wifi wipper;
|
||||
#endif
|
||||
|
||||
#define WS_DEBUG // Enable debug output!
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue