hello nordic ,
how can i use strings with nrf mesh andorid application ??
hello nordic ,
how can i use strings with nrf mesh andorid application ??
Hi Turki,
Could you please clarify what you meant by "use string" ? Did you want to send some properitery data ?
no i want to send uint8_t array contain my own data so from my custom model which is like simple message model , i want to send it to the application , for example if have 2 sensros on the same sarver i want to send their data to the app
If you want to send your own proprietary data you can refer to our simple on off model provided at \models\vendor in the SDK.
We don't have an example using it but you can refer to the simple on off example in our SDK 2.1 that we use the model.
In the model we only use one byte (on_off) but you can change it to an array and access the array from the access layer when you receive data by accessing p_message->p_data
yeah i did that , but my question was about the android application .
if i just add the proxy with what i did with the simple on off model will i be able to get the all the array on the application ?
Hi turki So basically the app currently supports sending acknowledged and unacknowledged messages to a VendorModel. Like Hung has mentioned if you use Nordic SimpleOnOffServer you can test this against the app. Basically if you send a Get message you will get the state and similarly sending an acknowledged Set message you will get the state back and for an unacknowledged set you won't get anything back. To send an acknowledged message you have to check the "acknowledged" checkbox and use the correct opcode for an acknowledged message. Also when you pass your parameters make sure you have increased the transactionId, if not your messages might be dropped from the node!
Also note that there is bug on SDK 2.1 and 2.2 that caused the SimpleOnOff server to fail due to wrong endianness in the sdk example. May be you can compile the SimpleOnOff in the sdk version 3.0.0
Hope this helps!