Thanks, I think I have a better understanding of how this works now.
So, in order to receive a String / byte array instead of a single byte; am I
correct that I would need to make the following changes ?
1. In Status function..
Line :- 172
struct os_mbuf *msg = NET_BUF_SIMPLE(3); // Change this to a higher
number ?
2. In Set Function
Line :- 203
gen_on_off_state = buf->om_data[0]; // Retrieve more data than only the
0th position in the array ?
3. Am not sure whats the purpose of net_buf_simple_pull_le16 etc are..
Would I need that for e.g. being utilised in Level..
level = (int16_t) net_buf_simple_pull_le16(buf);
If I did miss something or completely wrong about it.. please do let me know.
Thanks,
Aditya Xavier.
> On 29-Dec-2017, at 5:34 PM, Łukasz Rymanowski <[email protected]>
> wrote:
>
> Hi,
>
> On 29 December 2017 at 07:22, Aditya Xavier <[email protected]> wrote:
>> Hello, am I correct in my understanding that the BLE Mesh implementation
>> would require us to follow one of the Models as specified?
> You need to create model, but you are not limited to the one specified by BT
> SIG
>
>>
>> For e.g. in my case I need to implement a REST client over BLE Mesh. I
>> believe this can be easily on Bluetooth, however am not sure how to do so on
>> blemesh.
>
> Probably you need to design your own model for this. In blemesh
> application in main.c you can find example of vendor model which
> implements generic on/off but you can implement your own one.
>
>>
>> Please do point me in the right direction if I missed something.
>>
>> Thanks,
>> Aditya Xavier.
>
> Hope that helps
>
> Łukasz