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

JSON array conversion #27

Open
ROQOnline opened this issue Aug 24, 2023 · 2 comments
Open

JSON array conversion #27

ROQOnline opened this issue Aug 24, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ROQOnline
Copy link

Hello,

I'm using the library IotMqtt and I'm sending and receiving a data structure with arrays using the data format IOTMQTT_VAR_JSON, but what I'm receiving in my broker is a variable per array position instead of an array in JSON.

Is there a way to change this?

This is what I’m receiving.

image

This is what I want to receive.

image

This is the function block to send the data.

image

@priesf
Copy link
Collaborator

priesf commented Sep 1, 2023

Hello,
sorry for my late reply.
Currently we can not change this since we are relying on the PVJson library which has the same behavior.
There is already an issue open for this, but not yet planned.
br-automation-com/PvJson#10

We will keep the issue open as part of the backlog.
I'm sorry for your inconvenience.
BR Fabian

@priesf priesf added the enhancement New feature or request label Sep 1, 2023
@ROQOnline
Copy link
Author

Hi Fabian,

Thanks for the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants