JAndrassy / WiFiEspAT

Arduino networking library. Standard Arduino WiFi networking API over ESP8266 or ESP32 AT commands.
GNU Lesser General Public License v2.1
288 stars 44 forks source link

send a message to the client on connection #22

Closed atesin closed 4 years ago

atesin commented 4 years ago

i want to send a welcome/status/notifications/motd message when client connects without client have to send anything...

with server.available() i got the client object but just when it sends something... so i cannot send "pushes" but just responses

atesin commented 4 years ago

nevermind... i can use server.accept() like shown in AdvancedChatServer.ino example

i was confused because the function is not present in WiFiNINA api

... however since server.available() doesn't work i have to register and poll clients

JAndrassy commented 4 years ago

https://github.com/jandrassy/WiFiEspAT#the-wifiserver-class-differences