This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Set Read Property of Characteristic in nRFGO Studio

How to set READ property to a characteristic pipe through nRFGO studio.Actually i am not able to set READ property to any pipe.How can i do this?

Because i want iPhone to read value from this characteristic pipe. I have one pipe which i have set WriteWithoutResponse and i am able to write or send anything from app(iPhone) to nRF8001 using this pipe which i have set WriteWithoutResponse.

Now i want my app to read value that nRF8001 sends but i am not able to set any READ pipe through studio.Then how can read values that nRF8001 send?

I checked you sample xml files in that you have set notify. But in app i am not able to handle this that how to read value and whenever i try read the error comes no permission to read because the property that is set is NOTIFY. If i am able to set READ property then i think that error will not come.Can you tell me how to do this?

Parents
  • Hi,

    Read can be enabled by checking the Set Pipe property, In this case you can update the value using the SetLocalData command, but the iPhone would have to manually read the value afterwards.

    If you enable the notify property, you can use the SendData command to send notification to the phone with the new values. Note that in this case the Pipe must be enabled first. This is enabled by the phone by writing to the CCCD.

    Br,

Reply
  • Hi,

    Read can be enabled by checking the Set Pipe property, In this case you can update the value using the SetLocalData command, but the iPhone would have to manually read the value afterwards.

    If you enable the notify property, you can use the SendData command to send notification to the phone with the new values. Note that in this case the Pipe must be enabled first. This is enabled by the phone by writing to the CCCD.

    Br,

Children
No Data
Related