I want to carry a couple of basic tests within LMSSetValue and LMSGetValue to see:
- whether the specified data element is supported; and
- whether it has the necessary read or write privileges
and then set the error code appropriately. This is a pretty minimal set of tests – I’m probably going to have to add some others later – but it’s a starting point. Here’s the code.