forked from sq6sfo/espBode
-
Notifications
You must be signed in to change notification settings - Fork 4
/
esp_config.h
61 lines (45 loc) · 1.42 KB
/
esp_config.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
#ifndef _ESP_CONFIG_H_
#define _ESP_CONFIG_H_
#include "ESPTelnet.h"
extern ESPTelnet telnet;
#define FY6800 1
#define FY6900 2
/* Select the FY6900 or FY6800 AWG*/
#define AWG FY6900
/* Select either AP or CLIENT mode:
- AP - creates new network that oscilloscope can connect to
- CLIENT - joins existing network
*/
#define WIFI_MODE_AP
//#define WIFI_MODE_CLIENT
/* WiFi credentials */
#define WIFI_SSID "wlan_ssid"
#define WIFI_PSK "wlan_key"
/* Comment this for DHCP. However you'll need to obtain IP somehow. */
//#define STATIC_IP
/* Static ip configuration */
#ifdef STATIC_IP
#define ESP_IP 192,168,1,6
#define ESP_MASK 255,255,255,0
#define ESP_GW 192,168,1,1
#endif
#define ID "IDN-SGLT-PRI SDG1062X\n"
#define RPC_PORT (111)
#define LXI_PORT (703)
#define PORTMAP (0x000186A0)
#define VXI_11_CORE (0x000607AF)
#define PORTMAP_GETPORT (0x00000003)
#define RPC_SINGLE_FRAG (0x80000000)
#define RPC_REPLY (0x00000001)
#define VXI_11_CREATE_LINK (10)
#define VXI_11_DESTROY_LINK (23)
#define VXI_11_DEV_WRITE (11)
#define VXI_11_DEV_READ (12)
#define RX_BUFF_SIZE (128)
//#define DEBUG_PRINTS
#ifdef DEBUG_PRINTS
#define DEBUG(TEXT) Serial.println(TEXT);
#else
#define DEBUG(TEXT) telnet.println(TEXT);
#endif
#endif /* _ESP_CONFIG_H_ */