gisce / iec870ree

IEC-870-5-102 for REE Spanish Electric meters
GNU Affero General Public License v3.0
13 stars 11 forks source link

ADD Last Content Timemout & connection duration #34

Closed tinogis closed 2 years ago

tinogis commented 2 years ago

AppLayer stores two time counters:

When Last Content Heartbeat is greater than a configured amount of seconds (stored in max_content_timeout variable), NoContentTimeoutException is raised

max_content_timeout may be set with set_content_timeout and is 300 seconds by default

read_incremental_values, read_absolute_values , stored_tariff_info and current_tariff_info functions calls reset_content_received when correct data is received to reset content counter and avoid timeout