Library für ESP01 Webserver STM32F103RB Nucleo
Dependents: Nucleo_dht11_Webserver WebServerGSOEWorkshopSlider WebServerGSOEWorkshopDynamisch WebServerGSOEWorkshopStatisch ... more
Einstellungen.h@41:b31ca06263ed, 2021-12-02 (annotated)
- Committer:
- jack1930
- Date:
- Thu Dec 02 09:53:15 2021 +0000
- Revision:
- 41:b31ca06263ed
- Parent:
- 40:6d79431a08aa
dbg=false
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jack1930 | 14:d17cfd8131b1 | 1 | #include "mbed.h" |
jack1930 | 14:d17cfd8131b1 | 2 | #include "string" |
jack1930 | 14:d17cfd8131b1 | 3 | |
jack1930 | 31:c0984e9eabd6 | 4 | /** Der Mikrocontroller kann entweder ein eigenes WLAN aufbauen (Accesspoint) |
jack1930 | 26:b045cb598879 | 5 | oder sich bei einem vorhandenen Netzwerk anmelden |
jack1930 | 16:b09391fb73b4 | 6 | |
jack1930 | 26:b045cb598879 | 7 | Soll der ESP01 als Accesspoint oder Station in einem bestehenden WLAN |
jack1930 | 26:b045cb598879 | 8 | betrieben werden? |
jack1930 | 26:b045cb598879 | 9 | */ |
jack1930 | 28:e5af859145cf | 10 | |
jack1930 | 24:998f2ef93a78 | 11 | //#define station true //true=Station |
jack1930 | 24:998f2ef93a78 | 12 | #define station false //false=Accesspoint |
jack1930 | 17:87c762acb8d0 | 13 | |
jack1930 | 31:c0984e9eabd6 | 14 | /** accesspoint |
jack1930 | 28:e5af859145cf | 15 | * #define ip "192.168.5.1" //IP-Adresse des Webseervers festlegen |
jack1930 | 28:e5af859145cf | 16 | * #define netzmaske "255.255.255.0" //Netzmaske des Webservers festlegen |
jack1930 | 28:e5af859145cf | 17 | * #define Port 80 //Port des Webservers festlegen. 80: HTTP-Port |
jack1930 | 28:e5af859145cf | 18 | */ |
jack1930 | 40:6d79431a08aa | 19 | #define ip "192.168.5.2" //IP-Adresse des Webseervers festlegen |
jack1930 | 24:998f2ef93a78 | 20 | #define netzmaske "255.255.255.0" //Netzmaske des Webservers festlegen |
jack1930 | 24:998f2ef93a78 | 21 | #define Port 80 //Port des Webservers festlegen. 80: HTTP-Port |
jack1930 | 14:d17cfd8131b1 | 22 | |
jack1930 | 15:e710f0431920 | 23 | //station |
jack1930 | 24:998f2ef93a78 | 24 | #define scanAPs false //mit true kann nach vorhandenen Netzen gesucht werden |
jack1930 | 24:998f2ef93a78 | 25 | //die Anzeige erfolgt mit dem Terminal |
jack1930 | 24:998f2ef93a78 | 26 | #define ssid " " //SSID des WLANs |
jack1930 | 24:998f2ef93a78 | 27 | #define passwort " " //Passwort des Netzwerks |
jack1930 | 15:e710f0431920 | 28 | |
jack1930 | 14:d17cfd8131b1 | 29 | //Diagnose-Meldungen an Terminal senden (nein = false) |
jack1930 | 39:0d5c64c91538 | 30 | #define pDebug false |
jack1930 | 14:d17cfd8131b1 | 31 | |
jack1930 | 14:d17cfd8131b1 | 32 | //Anschluss |
jack1930 | 14:d17cfd8131b1 | 33 | #define tx PB_10 |
jack1930 | 14:d17cfd8131b1 | 34 | #define rx PB_11 |
jack1930 | 24:998f2ef93a78 | 35 | #define CH_PD PB_13 |
jack1930 | 24:998f2ef93a78 | 36 | #define RST PB_12 |
jack1930 | 14:d17cfd8131b1 | 37 | #define ESP8266_DEFAULT_BAUD_RATE 115200 |