Closed AlvaroVega closed 3 years ago
This only happens when body values are sting instead of native types like:
time=2021-05-11T15:09:44.692Z | lvl=DEBUG | corr=fcc668bb-cef3-418c-be4b-826e5d34b991 | trans=fcc668bb-cef3-418c-be4b-826e5d34b991 | op=IoTAgentNGSI.GenericMiddlewares | from=172.17.0.24 | srv=smartcity | subsrv=/ | msg=Body:
{
"devices": [
{
"device_id": "disp11",
"timestamp": true,
"attributes": [
{
"object_id": "minumero",
"name": "minumero",
"type": "Number"
},
{
"object_id": "miboolean",
"name": "miboolean",
"type": "Boolean"
},
{
"object_id": "minulo",
"name": "minulo",
"type": "None"
},
{
"object_id": "mistring",
"name": "mistring",
"type": "String"
}
],
"static_attributes": [
{
"name": "minumero_st",
"type": "Number",
"value": "33"
},
{
"name": "miboolean_st",
"type": "Boolean",
"value": "true"
},
{
"name": "minulo_st",
"type": "None",
"value": "null"
},
{
"name": "mistring_st",
"type": "String",
"value": "hola"
}
],
"protocol": "IoTA-UL",
"apikey": "9wxl46kt1w4ijy9gul5zyif1m"
}
]
}
This is not a bug
Should be inserted using native types