> I want to have long term storage and access to individual telegrams
An IOT is not designed for that. It is used for control or delivery of data to a server.
You could have a PostgreSQL-client in the IOT but an MQ might be better.
Long term storage also means backup and recovery and I don't think you have that planned for your IOT.
./hans