This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MCP default values

Now I'm working with MCP 3.9.0. When any device is connected, characteristic default values are not 0's. Can they be initialized in any way? It is a little bit annoying when certain values have to be written in order to be sent to remote device, because all bytes have to be set to 0 before. Best regards.

  • Are you asking if MCP can write 0 to certain characterisitic values on connection? Is it a possibility to handle this in the peripheral's firmware?

  • I mean that it should be great that characteristic values that appear by default were 0. Now, when my module is connected, there are only-write characteristics that appear as I show here below, while in previous versions of MCP, all values were 00-....-00 by default: 91-00-40-00-FE-FF-09-00-7F-E7-01-02-FF-ED-24-03-FF-97-DF-BB

  • Are you bonding? Could you edit your question to include a screenshot of this? And the logs file from MCP? When MCP does service discovery it will try to read all the characteristic values afterwards. You say your characteristic is write only, which I guess means that the Properties of the characteristic is Write. Properties are hints, and it doesn't necessarily mean that you cannot read it. Please see this answer.

    If MCP is not permitted to read the value, "no value" or something will appear. But still, the characteristic value on the server in the peripheral will still be the same.

Related