E
@jokr2 Hi, in fact i doesn't understood what do you mean.
LoraMac allows you to send data using lora radio modulation, this radio layer doesn't have ECC.
LoraWan is upper protocol used by lot of gateway and have only a MIC field in frame (Message Integrity Control), i doesn't allow correction, only detection of altered frame (and AES used in lorawan is only used for encryption).
If you use LoraMac mode you have to add to your data payload your ECC code by your own.
Finaly, if you want to have your ECC added to all frame send by your socket without explicitly add ECC in python code (but it will added on lower layer in C code), you can build your own custom lopy firmware (instruction is present in the forum)
Hope this help you