I used MQTT. Configured the setup from the web GUI of the GW. The payload showed up in a base-64 format which I tried to convert with a tool which gave the wrong output. I eventually found a converter that worked:
https://lorawan-packet-decoder-0ta6puiniaut.runkit.sh/
Now things work as expected.
Thanks again for your help.
Thanks a lot Jason. You solved it.