-->
Page 3 of 3

Re: ESP8266 integration with Easy IoT

PostPosted: Mon Feb 12, 2018 10:11 pm
by Merkur
I am still having difficulty with this and do not have any more clarity as to whether I can make multiple POST commands, one after the other without a WiFi disconnect/reconnect. Does anyone have any guidance on this?

What is the "easyIOTReport function" that you use?

Thanks,

Paul

Re: ESP8266 integration with Easy IoT

PostPosted: Tue Feb 13, 2018 6:44 am
by btidey
I don't disconnect the whole wifi between POSTs. I just use a client.connect before each POST.

https://github.com/roberttidey/ds18b20-esp8266 has my code for measuring temperatures and reporting to either easyIOT or Home Assistant. I actually use easyIOT as I find it works well and the database holds a lot of values without getting very large.

The easyIOTReport function is called to report a new value. It has retry logic in as well.

It uses the clientConnect function to open the client connection to easyIOT host before each POST. That has retry logic in as well.

In practice I find the retry logic is a bit redundant as my wifi network is pretty reliable.