====== ESP8266 Configuration Guide ====== Before doing this, make sure that your ESP8266 has been flashed. Please refer to [[sub-vendo#flash_esp8266|Flashing Guide For Wireless Coinslot]] on how to flash your ESP8266. 2 ways to config: - [[esp8266_configuration_guide#using_android_app_serial_usb_terminal|Using Android App Serial USB Terminal]] - [[esp8266_configuration_guide#using_putty|Using Putty]] ===== Using Android App Serial USB Terminal ===== Install [[https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal|Serial USB Terminal]] Connect your **ESP8266** board to Android via OTG. Make sure you enable the OTG in the android settings. Open **Serial USB Terminal** App. Go to **App's Settings** -> **Serial** and set **Baud Rate** to **__115200__**. Go to **App's Settings** -> **Terminal** and uncheck **Show timestamps**. Go to **App's Settings** -> **Send** and set **Newline** to **__LF__**. Tap the **plug** icon at the top to connect to device. Wait at least 5 seconds before executing commands. {{ :4.0.0-beta.1:usb-terminal-1.png?direct&300 |}} Send command "**env**" to show the current environment config. {{ :4.0.0-beta.1:usb-terminal-2.jpg?direct&300 |}} Send command "**ssid=**" to set the **WIFI SSID** you want your ESP8266 to connect to. Send command "**token=YOUR_TOKEN**" to set the encryption token. This should match with your token set in admin. Send command "**api_host=10.0.0.1**" to set the api host. This should be your LAN interface IP. Send command "**alias=PAYMENT_PORTAL_ALIAS**" to set the Payment Portal alias. {{ :4.0.0-beta.1:usb-terminal-3.jpg?direct&300 |}} Send command "**help**" to show all the available commands. {{ :4.0.0-beta.1:usb-terminal-4.jpg?direct&300 |}} ---- ===== Using Putty ===== Install [[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html | PUTTY]] Connect your **ESP8266** to PC via USB and determine **COM PORT.** Open Putty. Click "**Terminal**" in the left sidebar. Check "**Implicit LF in every CR**". Set **Local Echo** to **Force ON**. {{ :4.0.0-beta.1:putty-1.png?direct&500 |}} Click **Session** in the sidebar to go back to main window. Check **Serial**. Set **Serial Line** to proper **COMP PORT**. Set **Speed** to **__115200__**. Click **Open**. {{ :4.0.0-beta.1:putty-2.png?direct&500 |}} To submit **Command**, type in the command and press **ctrl + j** **//(Don't press enter)//**. Refer to [[esp8266_configuration_guide#using_android_app_serial_usb_terminal|Using Android App Serial USB Terminal]] for the list of supported commands. {{ :4.0.0-beta.1:putty-3.png?direct&500 |}}