-
Notifications
You must be signed in to change notification settings - Fork 19
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
Can't show elementsForGroup #257
Comments
Hello @Hung6129 The node's description display a model with weird value (-2147418111), or it's normal on ur device ? Otherwise it seems there is no issue with your usage. |
Hi @R0m4in-dooz Yes this issue also happen on iOS, i tested and get the same error About the (-2147418111), i also confuse and don't know why it has a "-" in front of the value, it expose like that on android and iOS, i just assume it's the vendor model id As i record it should be 2147549185(Decimal ) or 0x80010001(Hex) for Vendor model ?? And last but not least i think i want to contribute to this plugin 👌 : I will integrate some flutter code to make the example more clear and features look like nRF Mesh App 👍
It not much 😢 but hope i can do something for the plugin |
Ok, thx for checking !
Ok, yes it's probably that there is some change in how vendor model is defined that the plugin is not aware of, thus displaying wrongly formatted value
Great ! Feel free to open new Pull requests 🤩 just try to either :
|
But when i tested on ios Hmm.. something relate to method channel call i assume?? |
Hi @Hung6129 The value of key is not nullable. It is received as null in Dart because there is a bug on native code ;) the fix would be to edit native code so the key value is indeed sent to Dart. For the next error, yes your guess is right ! On iOS I think we had a breaking change at some point when we updated the Nordic SDK. The address is now an object with a field named address, so I think the fix would be to edit the swift method and in the returned data, there must be smth like |
Hello @R0m4in-dooz Well i add like you said in the DoozMeshNetWork.swift on the getElementsForGroup
Then this pop up
Am i missing something ? |
Hello @Hung6129 Indeed you are doing |
Ah! Maybe in the subscribed addresses. See there is "s.address", try adding .address there |
🤔 yeh but this error is more on the input..seems that the flutter args parsing is failing. You gotta check how the data is sent to swift because the error lies there, not in building the answer it seems |
Hi @R0m4in-dooz
I want to expose elements for group
Here is my inputs:
It show the "OK" snack bar and log success
I go back and want to see the elements
It pop this error when i try to expose elements for group:
But when i export and check in the JSON file it show the model
Are my inputs for the subscription add correct ?
Hope you can check it out
Thanks
The text was updated successfully, but these errors were encountered: