Error post gateway via api

hi @brocaar, i try to add gateway via api
body :
{
“gateway”: {
“boards”: [
{
“fineTimestampKey”: “”,
“fpgaID”: “”
}
],
“description”: “string”,
“discoveryEnabled”: true,
“gatewayProfileID”: “”,
“id”: “88 dd a7 73 63 4e 8e 0e”,
“location”: {
“accuracy”: 0,
“altitude”: 0,
“latitude”: 0,
“longitude”: 0,
“source”: “UNKNOWN”
},
“name”: “tes”,
“networkServerID”: “1”,
“organizationID”: “1”
}
}

i got error

{
“error”: “bad gateway mac: encoding/hex: invalid byte: U+0020 ’ '”,
“message”: “bad gateway mac: encoding/hex: invalid byte: U+0020 ’ '”,
“code”: 3,
“details”: []
}
can u help me.
thanks

This is the space character. Your ID should be 8 bytes (16 characters in this case) without spaces.

1 Like