I found when creating the device keys for a specific device which uses OTAA and I use the “appKey” parameter in the body of the API, it gives me following output:
{
"error": "lorawan: exactly 16 bytes are expected",
"code": 3,
"message": "lorawan: exactly 16 bytes are expected",
"details": []
}
The “appKey” is: 2a0773da7ec38065bec455ca1c800872 (it was generated in the Chirpstack App UI).
But, when I’m using the “nwkKey” as the application key, the key is added to the device perfectly.
Is this intended, because refering to the LoRaWAN specs “nwkKey” has nothing to do with the “appKey”…
I am really confused about that :-