lamp can send device information to register now
encode object with class name to unify decode process
marshall/unmarshall packet by class name. finish DEVINFO transfering