seb821 / espRFLinkMQTT

ESP8266 gateway between RFLink and MQTT server
96 stars 32 forks source link

Does it store the json messages in local file somewhere on device? #11

Closed happytm closed 4 years ago

happytm commented 4 years ago

Hi,

Thank you for sharing your very useful code. I would like to know if json data is stored in SPIFFS on the device? If so roughly how many messages can be stored with 3 MB Spiffs partition?

Thanks.

seb821 commented 4 years ago

Hi,

No. SPIFFS is not used at all. Only the last json message is saved and it is done in memory, which means it is lost on reboot.

espRFLink acts as a gateway. Last json is only used to compare information and avoid publishing too frequently the same information on the MQTT server (this behavior can be adjusted for each ID with "Publish Interval" setting and disabled by selecting 0).

happytm commented 4 years ago

Understood. Thank you.