forked from windowsair/wireless-esp8266-dap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wifi_configuration.h
69 lines (55 loc) · 1.72 KB
/
wifi_configuration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/**
* @file wifi_configuration.h
* @brief Fill in your wifi configuration information here.
* @version 0.1
* @date 2020-01-22
*
* @copyright Copyright (c) 2020
*
*/
#ifndef __WIFI_CONFIGURATION__
#define __WIFI_CONFIGURATION__
static struct {
const char *ssid;
const char *password;
} wifi_list[] __attribute__((unused)) = {
{.ssid = "OTA", .password = "12345678"},
{.ssid = "DAP", .password = "12345678"},
// Add your WAP like this:
// {.ssid = "your ssid", .password = "your password"},
};
#define WIFI_LIST_SIZE (sizeof(wifi_list) / sizeof(wifi_list[0]))
#define USE_MDNS 1
// Use the address "dap.local" to access the device
#define MDNS_HOSTNAME "dap"
#define MDNS_INSTANCE "DAP mDNS"
//
#define USE_STATIC_IP 0
// If you don't want to specify the ip configuration, then ignore the following items.
#define DAP_IP_ADDRESS 192, 168, 35, 12
#define DAP_IP_GATEWAY 192, 168, 35, 1
#define DAP_IP_NETMASK 255, 255, 255, 0
//
#define USE_OTA 1
#define USE_UART_BRIDGE 1
#define UART_BRIDGE_PORT 1234
#define UART_BRIDGE_BAUDRATE 74880
//
// DO NOT CHANGE
#define USE_TCP_NETCONN 0
#define PORT 3240
#define CONFIG_EXAMPLE_IPV4 1
#define USE_KCP 0
#define MTU_SIZE 1500
//
#if (USE_TCP_NETCONN == 1 && USE_KCP == 1)
#error Can not use KCP and TCP at the same time!
#endif
#if (USE_KCP == 1)
#warning KCP is a very experimental feature, and it should not be used under any circumstances. Please make sure what you are doing. Related usbip version: https://github.com/windowsair/usbip-win
#endif
extern int printf(const char *, ...);
inline int os_printf(const char *__restrict __fmt, ...) {
return printf(__fmt, __builtin_va_arg_pack());
}
#endif