ekstrand / ESP8266wifi

ESP8266 Arduino library with built in reconnect functionality
MIT License
450 stars 235 forks source link

Sending string message to server via AP #60

Open RomanMedvedev opened 5 years ago

RomanMedvedev commented 5 years ago

How can I send string messge to the server: example.com:8080 via AP on my mobile phone?

Can I use this code? wifi.connectToAP("myaccesspoint", "password123"); wifi.connectToServer("example.com", "8080"); wifi.send("example.com", "Hello World!");

RomanMedvedev commented 5 years ago

AT+CWJAP="ipxone","87654321"

OK AT+CIFSR

192.168.4.1 172.20.10.6

OK AT+CIPSTART=4,"TCP","google.com",80

Link typ ERROR