Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By stavbodik
#49676 Your right , my bad i used with http:// .
Now when i am thinking about it , In my project i am going to use local server i mean the same computer where the router is going to be connected , Can i connect to this host some how "locally" to shorten the connecting+sending time , something like home network through esp ?
Hmm my computer host server and i connect trough wifi so i should make port forward with port 80 to my computer , so inside host for Begin function i will put my router ip ? am I on the right direction ?
Will it reduce the time ? :roll:
Is this what i am looking for ? UDP ?
http://www.iotfrog.com/en/articles/article/227
User avatar
By stavbodik
#49681 Yeah i made an connection with UDP its twice faster , wifi connect + take object sensor distance + send ~= 500ms !!!
And i success receive the packets with java (:

If any one need example :

ESP :
http://www.iotfrog.com/en/articles/article/227

Java :
http://www.java2s.com/Code/Java/Network ... ockets.htm

Now left to calculate the lifetime of battery accordingly to my duty cycle and current consumption (:
Big thanks for everything !!!