can someone plz. Tell me the sequence of AT command?
Tx
Explore... Chat... Share...
hakha4 wrote:Hi
I wan't to do the same as you. Googling for days without finding any straght answers. Is it possible to connect a server on port x and at the same time listen to port y ?? Did you manage to get this to work? If so please share
Hucke
local SERVER = "192.168.1.25"
local PORT = "2222"
local socket = nil
function senddata()
socket = net.createConnection(net.TCP,0)
socket:on("connection",connected)
socket:connect(PORT,SERVER)
end
function connected()
local MY_IP_ADDRESS = wifi.sta.getip()
socket:send("MY IP IS "..MY_IP_ADDRESS.."\r\n")
end
srv=net.createServer(net.TCP)
srv:listen(1111,function(conn)
conn:on("receive", function(client,request)
if(request == "Connect")then
senddata()
end
end)
end)
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]