This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.13.1 to use new WiFi101_Generic library
### Release v1.13.1 1. Using new [`WiFi101_Generic library`](https://github.com/khoih-prog/WiFi101_Generic) for sending larger data 2. Add astyle using `allman` style. Restyle the library 3. Update `Packages' Patches`
- Loading branch information
1 parent
5187833
commit d113915
Showing
14 changed files
with
214 additions
and
154 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
38 changes: 38 additions & 0 deletions
38
examples/Generic/RP2040W/RP2040W-AdvancedWebServer/defines.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/**************************************************************************************************************************** | ||
defines.h | ||
For RP2040W with CYW43439 WiFi. | ||
Based on and modified from Gil Maimon's ArduinoWebsockets library https://github.com/gilmaimon/ArduinoWebsockets | ||
to support STM32F/L/H/G/WB/MP1, nRF52, SAMD21/SAMD51, RP2040 boards besides ESP8266 and ESP32 | ||
The library provides simple and easy interface for websockets (Client and Server). | ||
Built by Khoi Hoang https://github.com/khoih-prog/Websockets2_Generic | ||
Licensed under MIT license | ||
*****************************************************************************************************************************/ | ||
|
||
#ifndef defines_h | ||
#define defines_h | ||
|
||
#if ( defined(ARDUINO_RASPBERRY_PI_PICO_W) ) | ||
#if defined(WEBSOCKETS_USE_RP2040W) | ||
#undef WEBSOCKETS_USE_RP2040W | ||
#endif | ||
#define WEBSOCKETS_USE_RP2040W true | ||
#define USE_RP2040W_WIFI true | ||
#define USE_WIFI_NINA false | ||
#else | ||
#error This code is intended to run only on the RP2040W boards ! Please check your Tools->Board setting. | ||
#endif | ||
|
||
#include <WiFi.h> | ||
|
||
#define DEBUG_WEBSOCKETS_PORT Serial | ||
// Debug Level from 0 to 4 | ||
#define _WEBSOCKETS_LOGLEVEL_ 3 | ||
|
||
char ssid[] = "your_ssid"; // your network SSID (name) | ||
char pass[] = "12345678"; // your network password (use for WPA, or use as key for WEP), length must be 8+ | ||
|
||
#endif //defines_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
Oops, something went wrong.