mirror of
https://github.com/noakdsv/AtomCraft-2.28.git
synced 2024-10-22 21:24:19 +02:00
99 lines
1.8 KiB
C
99 lines
1.8 KiB
C
/****************************************************************************************************************************
|
|
defines.h for ESP32-Client.ino
|
|
For ESP32.
|
|
|
|
Based on and modified from Gil Maimon's ArduinoWebsockets library https://github.com/gilmaimon/ArduinoWebsockets
|
|
to support STM32F/L/H/G/WB/MP1, nRF52 and SAMD21/SAMD51 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(ESP8266) || defined(ESP32) )
|
|
#error This code is intended to run on the ESP32 platform! Please check your Tools->Board setting.
|
|
#elif ( ARDUINO_ESP32S2_DEV || ARDUINO_FEATHERS2 || ARDUINO_ESP32S2_THING_PLUS || ARDUINO_MICROS2 || \
|
|
ARDUINO_METRO_ESP32S2 || ARDUINO_MAGTAG29_ESP32S2 || ARDUINO_FUNHOUSE_ESP32S2 || \
|
|
ARDUINO_ADAFRUIT_FEATHER_ESP32S2_NOPSRAM || ESP32_DEV_MODULE)
|
|
#define BOARD_TYPE "ESP32-S2"
|
|
#elif ( ARDUINO_ESP32C3_DEV )
|
|
#warning Using ESP32-C3 boards
|
|
#define BOARD_TYPE "ESP32-C3"
|
|
#else
|
|
#define BOARD_TYPE "ESP32"
|
|
#endif
|
|
|
|
#ifndef BOARD_NAME
|
|
#define BOARD_NAME BOARD_TYPE
|
|
#endif
|
|
|
|
#define DEBUG_WEBSOCKETS_PORT Serial
|
|
// Debug Level from 0 to 4
|
|
#define _WEBSOCKETS_LOGLEVEL_ 3
|
|
|
|
const char* ssid = "dsv-extrality-lab"; //Enter SSID
|
|
const char* password = "expiring-unstuck-slider"; //Enter Password
|
|
|
|
const char* websockets_server_host = "10.204.0.88"; //Enter server address
|
|
|
|
#define WEBSOCKETS_PORT 7890
|
|
|
|
const uint16_t websockets_server_port = WEBSOCKETS_PORT; // Enter server port
|
|
|
|
#endif //defines_h,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|