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

Unsupported value: 0xFFFF of type __SwiftValue #268

Open
redclouddrailan opened this issue Oct 2, 2023 · 1 comment
Open

Unsupported value: 0xFFFF of type __SwiftValue #268

redclouddrailan opened this issue Oct 2, 2023 · 1 comment

Comments

@redclouddrailan
Copy link

Getting this error on the example app ios.

image

 onExpansionChanged: (isOpen) {
        if (isOpen) {
          debugPrint('load elements');
          widget.node.elements
              .then((value) => setState(() => _elements = value));
        }
      },

it happens after you load the mesh network and click on the dropdown to see the elements:

image

These works perfectly fine on android though.

Here's my flutter doctor:

image

@Akhil-Sai-Prasad
Copy link

The issue stems from the mesh data in use. Upon review, you'll notice that within the nodes, the element data includes a location value of 0xFFFF, which iOS doesn't recognize. To resolve this, prior to transmitting the mesh data to the nRF plugin, double-check the location data and convert any hexadecimal values to decimal (e.g., convert 0xFFFF to 65535). This approach should fix the isssue.

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

No branches or pull requests

2 participants