From 44d618c6788e7c1f3f2797f793a1c2dec6ec9627 Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Mon, 30 Oct 2023 15:21:32 +0100 Subject: [PATCH] do not create device when ngsiv2 measure is provided --- lib/bindings/HTTPBinding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bindings/HTTPBinding.js b/lib/bindings/HTTPBinding.js index faac259c..0e86edbe 100644 --- a/lib/bindings/HTTPBinding.js +++ b/lib/bindings/HTTPBinding.js @@ -420,7 +420,7 @@ function handleIncomingNgsiv2Measure(req, res, next) { context = fillService(context, { service: 'n/a', subservice: 'n/a' }); config.getLogger().debug(context, 'Processing HTTP NGSIv2 measure'); - iotaUtils.retrieveDevice(req.deviceId, req.apiKey, transport, processNGSIv2Measure); + processNGSIv2Measure(null, { id: req.deviceId, apikey: req.apiKey }); } function isCommand(req, res, next) {