Types derived from octstr are not represented correctly in the chip-types.xml in the Matter SDK · Issue #1473 · project-chip/zap · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then try to codegen, the type ZAP spits out on the C++ side looks like this:
/* TYPE WARNING: hwadr defaults to */ uint8_t *
which is very much not the right type. if I explicitly add all these types to the atomicType function in override.js I can get the right C++ types happening, but isString still tests false for that type, so all sorts of codegen does not work correctly because the wrong branches are taken. And Darwin codegen fails outright with TypeError: Cannot read properties of undefined, for reasons I have not figured out yet.
That is, there does not seem to be a way to actually cleanly declare a type as "derives from octet string".
The following types are derived from octstr in the Matter spec:
but in our current ZAP XML these seem to be defined as integer types of some sort.... They should be defined as deriving from octstr. @brdandu
The text was updated successfully, but these errors were encountered: