Device Configuration Parameters issue

Device Configuration Parameters issue

@Gary Howell

Hi,

I have noticed that if I do console.log(device) in a parser, the parameter list shows the parameters more than once in the params array. I have also seen the parameter grow for each payload processed. My understanding is that the device.params list should only have one entry per parameter (param1 and param2 in this case).

Any ideas?

14:22:30:
Log from [device] payload parser:
{ “id”: “60dc6ee68b5ef6001103e80c”, “profile”: “602a6465735ccb00199e01e6”, “bucket”: “60dc6ee68b5ef6001103e80d”, “tags”: [], “params”: [ { “key”: “param2”, “value”: “Goodbye”, “sent”: false }, { “key”: “param1”, “value”: “Hello, world!”, “sent”: false }, { “key”: “param1”, “value”: “Hello, world!”, “sent”: false }, { “key”: “param1”, “value”: “Hello, world!”, “sent”: false } ] }
{
“id”: “60dc6ee68b5ef6001103e80c”,
“profile”: “602a6465735ccb00199e01e6”,
“bucket”: “60dc6ee68b5ef6001103e80d”,
“tags”: [],
“params”: [
{
“key”: “param2”,
“value”: “Goodbye”,
“sent”: false
},
{
“key”: “param1”,
“value”: “Hello, world!”,
“sent”: false
},
{
“key”: “param1”,
“value”: “Hello, world!”,
“sent”: false
},
{
“key”: “param1”,
“value”: “Hello, world!”,
“sent”: false
}
]
}