WiFi Setup

When the firmware to the ESP device is first installed, or first purchased form ByVac the ESP device will be an Access Point (AP). This enables a connection through a browser so that its settings can be changed. At any time should something go wrong, the ESP device can be set back to the factory defaults. This is by applying power and then setting GPIO 0 to ground and holding it there for 10 seconds. GPIO0 is normally either a button or shoring link on ByPic devices.

This following assumes a Windows machine.

Step 1

Apply power to the wifi device.

Step 2

On the laptop, tablet or phone, use wifi settings to connect to the device, the SSID (name of the device will begin with ESP_). This SSID will appear when the wifi device is tuned on. It may take some time for the laptop to see the device.

Step 3

Using a browser enter 192.168.4.1 in the browser address bar. ** You may have to wait for the wifi to give your PC an IP address.

The actual screens may change depending on the firmware.

It is recommended, initially anyway, that the ESP be set as a station. Click on Station Setup.

Set all that is needed in one go as this is a 1 shot operation, you will not be able to get back here without re-setting the system flag or doing a factory reset.

NOTE: When pressing Save & Reboot the browser may stop responding, this is usually okay. The ESP device will need a physical reset after the set up (i.e power down and than back up).

Settings

Once the IP has been set and the device set to station mode (1). All of the setting can be changed using a +++command.

The following is what should be set up in this mode

Mode: Set this to 1 (station mode)

SSID: This is the name of the router you wish to connect to in station mode (mode 1). Set this to the same name as your home router and all communication will be via that router. This is the most common method of using the device.

Password: This is the (wifi code) password of the home router. The ESP will figure out the type of security used and once correctly set it will enable communication vie the router.

Port: A socket consists of an IP address and a port number, the default is 80 so that it can easily communicate with a browser.

IP Address: This has 2 options. If set to 0, which is not a valid ip address, the home router will give the ESP device an address in the correct range for your network. The down side to this is that to communicate with the ESP device you need to know the address and so you will have to login to the home router and find out what address it has been given. This is called a dynamic IP address.

An alternative is for you to choose a fixed IP address so that any communication is via a known IP address. When choosing an address consider the following:

  1. The first 3 numbers must match your network (router) address.
  2. It must not have the same address as any other device on the network.

Gateway: This is the IP address of your home router

Netmask: Just set this to 255.255.255.0

Trouble shooting and further information, if required.