Added support for motor functions. This needed a change so that Function/State ids sent to the central could be different for micros and micros+.