I have a vendor model bt_mesh_model_op defined as follows
const struct bt_mesh_model_op _admin_model_ops[] = {
What are the guidelines for creating vendor specific opcodes?
Thanks
I have a vendor model bt_mesh_model_op defined as follows
const struct bt_mesh_model_op _admin_model_ops[] = {
Hello again, and sorry about the wait!
The usage of vender specific opcodes is documented in section 3.7.3.1 in the Mesh Profile Spec.

For an example on how this can be implemented, you could also have a look at the chat example in NCS.
Regards,
Elfving
Anything higher than 0x03 works. I was just curious why. It's odd because 0x04 that I use is on your list as well.
I'll try 0x10 so it does not conflict with your opcodes
Question
0x04 is listed as "Simple OnOff Status"
What's the size of the message for this opcode? If it's 8 bytes - that would explain why I don't get "invalid message size" when I use it .
Thank you
AndyM said:What's the size of the message for this opcode? If it's 8 bytes - that would explain why I don't get "invalid message size" when I use it .
The contents and length of the messages can be found here.
I should mention that if you are simply testing, or not using this to make your own products it doesn't matter what company ID you use. However, using the Nordic ID for this isn't good (We might for instance decide to add another opcode which might conflict with yours). There is a special value for such purposes which is 0xFFFF (for more info see here). If you want to sell products however you would of course need to qualify the products and get your own company ID.
Btw, could you give me the exact wording of the error message you were getting?
Regards,
Elfving
AndyM said:What's the size of the message for this opcode? If it's 8 bytes - that would explain why I don't get "invalid message size" when I use it .
The contents and length of the messages can be found here.
I should mention that if you are simply testing, or not using this to make your own products it doesn't matter what company ID you use. However, using the Nordic ID for this isn't good (We might for instance decide to add another opcode which might conflict with yours). There is a special value for such purposes which is 0xFFFF (for more info see here). If you want to sell products however you would of course need to qualify the products and get your own company ID.
Btw, could you give me the exact wording of the error message you were getting?
Regards,
Elfving