How to forward payload (no raw_payload) to decode outside TTN?

Hello,

I need to decode payload outside of TTN (over node-red or thingsboard).
But I can’t find the TTN setting to received the payload.
I have tried with “HTTP integration” (from TTN to HTTP callback server) and"TTN integration connector" in thingsboard but the problem is still the same:
I get only “payload_raw”, not payload I show in red bellow:

image

For example, in HTTP callback I have:
BODY
{ mode: ‘JSON’ }
HEADERS
{ host: xxxxxxxxxx’,
‘user-agent’: ‘http-ttn/2.6.0’,
‘content-length’: ‘677’,
‘content-type’: ‘application/json’,
‘accept-encoding’: ‘gzip’ }
BODY
{ app_id: ‘xxxxxx’,
dev_id: ‘xxxxxxxx’,
hardware_serial: ‘xxxxxxxxxx’,
port: 3,
counter: 190,
payload_raw: ‘AdyBBoIs/RM=’,
payload_fields: { port: 3 },
metadata:
{ time: ‘2019-10-26T07:16:06.512317647Z’,
frequency: 867.3,
modulation: ‘LORA’,
data_rate: ‘SF7BW125’,
coding_rate: ‘4/5’,
gateways:
[ { gtw_id: ‘eui-xxxxxxxxx’,
timestamp: 2063664339,
time: ‘2019-10-26T07:16:06.489734Z’,
channel: 4,
rssi: -66,
snr: 10,
rf_chain: 0,
latitude: xxxxxxxx,
longitude: 3.9148493,
location_source: ‘registry’ } ] },
downlink_url:
https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/xxxxxxx’ }

Can you tell how to get “payload” please ?

Have a good day!

Loic

Hi

payload_raw is just the same payload encoded in base64.

Try to paste “AdyBBoIs/RM=” in this site https://cryptii.com/pipes/base64-to-hex you will see you get the corresponding hex.
There is plugin in node red to decode base64.

Nicolas

Thank a lot grazy, I will try the “node-red-node-base64”

I confirm : it works now.
raw_payload is now ready to use (same as “payload” with https://flows.nodered.org/node/node-red-contrib-ttn)

The ticket can be close…

Thanks,