TransWikia.com

Size limitation on char Array on ESP8266

Arduino Asked by Guy . D on January 25, 2021

I’m creating a log of events, stored as a txt file. If it matters, I’m using ESP8266.

To display the log of each IOT, I’m publishing the txt file to a disgnated MQTT topic for all my IOT devices (later on to Telegram ). For sorting ( new first and old last ) I read each line into char array, post it to MQTT, and save it back to txt file.

Currently char array is defined as: char log_array[20][200] – meaning I’m keeping a log of 20 records, of 200 chars long.

Is it the right way ( declare a char array ) ? are there any limitation for size of array ( say 200 records )

Guy

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP