Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check if measure attrs were send in ngsiv2 format #1672

Closed
wants to merge 1 commit into from

Conversation

AlvaroVega
Copy link
Member

fix for #1671

@AlvaroVega
Copy link
Member Author

AlvaroVega commented Nov 28, 2024

time=2024-11-28T13:48:59.668Z | lvl=DEBUG | corr=fafc6555-98b8-4b8a-bed4-2a05624eea59 | trans=fafc6555-98b8-4b8a-bed4-2a05624eea59 | op=IoTAgentNGSI.Entities-v2 | from=n/a | srv=smartcity | subsrv=/ | msg=sendUpdateValueNgsi2 loop with: entityName=thing:disp1, measures={"measure_id":"disp3","measure_type":"thing","TimeInstant":{"type":"DateTime","value":"2023-11-15T15:52:32.313Z","metadata":{}},"battery":{"type":"Number","value":30,"metadata":{}},"flow":{"type":"Number","value":2,"metadata":{}},"volume":{"type":"Number","value":6,"metadata":{}},"battery2":{"type":"Number","value":30,"metadata":{}}},

In this case TimeInstant measure attribute value is not a single value, is an object like:

{"type":"DateTime","value":"2023-11-15T15:52:32.313Z","metadata":{}}

@AlvaroVega AlvaroVega closed this Nov 28, 2024
@AlvaroVega AlvaroVega deleted the fix/ngsiv2_measure_with_timeinstant branch November 28, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant