How to convert cayenne.getBuffer() to payload string
If you want to convert this in order to send the payload, then: don’t. LoRaWAN payloads are not sent as human readable hexadecimal text. You should pass the binary result of cayenne.getBuffer() to whatever LoRaWAN library you’re using. For your example that will send 4 bytes, not 8.
Thank arjanvanb. You are my hero again. Your suggestion can solve my problem.
My use case is to put cayenne.getBuffer() in my AT command string.
It works like a charm now.