PDA

View Full Version : Status Message Markers


hamish
March 8th, 2010, 06:50 AM
Here is a problem that I've come up against when parsing Status messages with the % replaceable parameters.

In Table B-1 there are two format Markers, %d & %x and there is one Specifier %L for a Slot Label.

When producing an informative Status message for a UI, instead of printing "Sensor 2 out of range", printing "Sensor Array Temperature out of range" would be more helpful. The user does not want to go look up what sensor 2 is.

To achieve the above, involves parsing the Message to look for the string "Sensor" before inserting the sensor description.

Offering an additional marker such as %S specifically for sensor indexes would greatly simplify this process and make it more robust for Manufacturer defined Status Messages

sblair
March 8th, 2010, 10:18 AM
Hamish,

There are probably a number of good extensions that we could do there. This would be a good topic for us at the July meetings.