I'm using the FlashStringTable C api and it's great because it makes a nice compact area for strings, and later on, I can translate them to another language.
I have a PlatformIO project with several modules.
But I've got brain fog about how to access this array from another module in the project. I'd normally use extern xxx, but the macros used by FlashStringTable to get the strings into PROGMEM are rather complex.
Then it's easy to access from outside, simply by including the header and then accessing the two functions, as appropriate.
Serial.print(GetFSH(IDS_ITEMA)); // where IDS_ITEMA is the #defined subscript
I've posted this just in case it's useful for others
P.S. One thing that would be great with the FlashStringTable would be to be able to associate an integer value with each string. That would obviate the need to keep a separate set of #defines alongside...
You can click the solution checkbox under the most useful reply to indicate that the topic is solved so others that experience the same problem know that a solution is provided.