Vendor model opcodes

I have a vendor model bt_mesh_model_op defined as follows

const struct bt_mesh_model_op _admin_model_ops[] = {


    { BT_MESH_MODEL_OP_3(OPCODE_SET_UNACK, VENDOR_CID), BT_MESH_LEN_EXACT(4),  event_set_unack},
    BT_MESH_MODEL_OP_END,
};
OPCODE_SET_UNACK is an enumeration
If the value is 0 - 3 I get "invalid message size"  when publishing the message
If the value is > 3 the message goes out
Are the values 0-3 reserved ? Where is it documented?
What are the guidelines for creating vendor specific opcodes?
Thanks
Parents Reply
  • 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

Children
No Data
Related