In this paper, we aim to minimize the total power of all the Internet of Things devices (IoTDs) by jointly optimizing user association, computation capacity, transmit power, and the location of unmanned aerial vehicles (UAVs) in an UAV-assisted cloud radio access network (C-RAN). In order to solve this non-convex problem, we propose an effective algorithm by solving four subproblems iteratively. For the user association and the computation capacity subproblems, the non-convex constraints are relaxed and the optimal solutions are obtained. For the transmit power control and the location planning subproblems, successive convex approximation (SCA) technique is used to transform the non-convex constraints into convex ones. Moreover, to obtain the suboptimal solutions, slack variables are also introduced to deal with the feasibility-check problems. The simulation results demonstrate that the proposed algorithm can greatly reduce the total power consumption of IoTDs.