NordicSemiconductor / Android-nRF-Mesh-Library

The Bluetooth Mesh Provisioner and Configurator library.
https://www.nordicsemi.com/
BSD 3-Clause "New" or "Revised" License
414 stars 177 forks source link

ApplicationMessage public accessible #435

Closed DevHachi closed 3 years ago

DevHachi commented 3 years ago

Is your feature request related to a problem? Please describe. Currently I can't implement my own messages, because I get an error when trying to inherit from ApplicationMessage.

Cannot access '<init>': it is package-private in 'ApplicationMessage' Cannot access 'ApplicationMessage': it is package-private in 'no.nordicsemi.android.mesh.transport' 'public' subclass exposes its 'public/*package*/' supertype ApplicationMessage

It would be nice if I could implement my own messages, that nordic has not implemented because they are vendor specific or because they are not implemented yet.

It would be really awesome if this would be possible.

roshanrajaratnam commented 3 years ago

you may use VendorModelMessageAcked or VendorModelMessageUnacknowled to send vendor specific messages.