The class of the device doesn’t match at the class of the group.
const MODA_ERRORS_TYPE MODA_EDEVICECLASSNOTACCEPTED = -17;
The device which is adding to the group is not in the same class as the group itself. For example the addition of a device type “Distance” to a group “contact”.....
The error also can happen if the device is NULL.