As said, the last line is not working because dict doesn’t retransform the dictString… - how to do it?
Reason:
I need to find a way how to transfer a whole dictionary but all I have as “pipe” are variable types such as int or string… (or am I able to transfer Dictionaries using the pkg = PyDatagram() -> pkg.add[b]Dict/b ?
Attention… You migt want to use try-except for that because exceptions might occur easily
Yellow, thanks for your help as well… the problem is: I am not sure if the dict that is going to be transmitted will contain other dicts, or lists or tupels, triples, whatever - and WHERE these will be in the dict…
Pickle is doing the job here best - however, your solution would be the next way I would have tried
Regards, Bigfoot29
Edit: This String (dictString) can now be transmitted easily using pkg.addString()