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

Direct Methods only support map[string]interface{} #24

Open
z-br opened this issue Jun 1, 2020 · 0 comments
Open

Direct Methods only support map[string]interface{} #24

z-br opened this issue Jun 1, 2020 · 0 comments

Comments

@z-br
Copy link

z-br commented Jun 1, 2020

Azure, and specifically IOT Central, supports numbers/strings/bools as direct method payloads, which don't work in the marshaling layer here. One option would be to defer marshal/unmarshal to the implementer of the DirectMethodFunc. Maybe this could be handled in conjunction with #23 - there could be something like RegisterDirectMethodAdvanced that support asynchrony and did bytes in, bytes out.

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

1 participant