How can I Send data to SoftAP from a connected device

tj4shee
Posts: 4
Joined: Tue Oct 27, 2015 11:54 pm
Location: Lexington, KY

How can I Send data to SoftAP from a connected device

Postby tj4shee » Wed Oct 28, 2015 6:13 am

I have my ESP-01 setup with CWMODE=3

the STA part works great - I CIPSEND a request to my web server and it returns the expected data.....

the AP part.... ? I can connect to it.... it shows up in my wifi server list and I attach to it fine.... BUT... where do I go from there ?

I want to be able to connect to the ESP-01 AP (which I can)... and be able to send data to it (which I am at a loss on how to do)..... If I connect to the ESP-01 AP and then, using a web browser try to get to 192.168.4.1 - my web browser times out (as expected since the ESP is not a web server) - but I expected to at least see the request on the AP side....

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: How can I Send data to SoftAP from a connected device

Postby ESP_Faye » Wed Oct 28, 2015 10:39 am

Hi,

Here is a guide, 4B-ESP8266__AT Command Examples.

Please refer to Chapter 5. Multiple Connection as TCP server.

Thanks for your interest in ESP8266 !

Jose Guilherme
Posts: 1
Joined: Sun Nov 15, 2015 11:53 pm

Re: How can I Send data to SoftAP from a connected device

Postby Jose Guilherme » Mon Nov 16, 2015 2:26 am

Hey There,

I'm trying to open a web server using ESP8266-01. So, It works when a try to open it using some terminal (putty). But, using a microcontroller and sending the same AT Commands my web browser download the HTML string.

Here, following the AT COMMANDS i've used to open the WEB SERVER:

AT+CWMODE = 2
AT+CWSAP = "myssid","password",1,3
AT+RST
AT+CIPMUX=1
AT+CIPSERVER=1,80
AT+CIPSEND=0,15 //here i send my html string to test and ESP returns SEND OK
AT+CIPCLOSE= 0

Thanks,

Guilherme.

Who is online

Users browsing this forum: No registered users and 188 guests