using bacnet constants instead of string matching when determining type