-->
Page 1 of 2

send data to esp8266 without port forwarding

PostPosted: Tue Mar 12, 2019 12:44 am
by stern0m1
Is there a service that you can send data to the esp8266 over the internet without port forwarding and without constantly polling some server?
Thanks

Re: send data to esp8266 without port forwarding

PostPosted: Tue Mar 12, 2019 1:39 am
by schufti
yes, by connecting to an external server. You don't have to actively poll it, you just keep the port open and the server will contact you -> MQTT etc

Re: send data to esp8266 without port forwarding

PostPosted: Tue Mar 12, 2019 6:50 am
by stern0m1
schufti wrote:yes, by connecting to an external server. You don't have to actively poll it, you just keep the port open and the server will contact you -> MQTT etc


With MQTT do have to be always checking if the connection is still opened? And how many bytes of data is sent to check if it's opened?
I want an idea of the data usage just to keep it opened.
Thanks

Re: send data to esp8266 without port forwarding

PostPosted: Tue Mar 12, 2019 8:08 am
by Pablo2048
Why you don't search for the answer by yourself? BTW even TCP connection has keepalive mechanism, but you have to search if it is available in Arduino Core implementation...